blob: 5b1f8d967f2156ef628397a414a765fc61e2f2a7 [file] [log] [blame]
jat@google.com134be542009-08-03 15:30:11 +00001#ifndef __H_LoadJsniMessage
2#define __H_LoadJsniMessage
3/*
4 * Copyright 2008 Google Inc.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7 * use this file except in compliance with the License. You may obtain a copy of
8 * the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 * License for the specific language governing permissions and limitations under
16 * the License.
17 */
18
19#include <string>
20#include "Message.h"
21#include "BrowserChannel.h"
22#include "HostChannel.h"
23
24class LoadJsniMessage : public Message {
25public:
26 static const char TYPE = MESSAGE_TYPE_LOADJSNI;
27private:
28 const std::string js;
29
30 LoadJsniMessage(const std::string& js) : js(js) {}
31
32public:
33 virtual char getType() const {
34 return TYPE;
35 }
36
37 std::string getJs() const {
38 return js;
39 }
40
41 static LoadJsniMessage* receive(HostChannel& channel);
42};
43#endif