Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: chrome/renderer/extensions/extension_process_bindings.h

Issue 155514: Implement extension specific events (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Exposes extension APIs into the extension process. 5 // Exposes extension APIs into the extension process.
6 6
7 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ 7 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_
8 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ 8 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_
9 9
10 #include <map>
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "v8/include/v8.h" 14 #include "v8/include/v8.h"
14 15
15 class ExtensionProcessBindings { 16 class ExtensionProcessBindings {
16 public: 17 public:
17 static void SetFunctionNames(const std::vector<std::string>& names); 18 static void SetFunctionNames(const std::vector<std::string>& names);
18 static v8::Extension* Get(); 19 static v8::Extension* Get();
19 20
20 // Handles a response to an API request. 21 // Handles a response to an API request.
21 static void HandleResponse(int request_id, bool success, 22 static void HandleResponse(int request_id, bool success,
22 const std::string& response, 23 const std::string& response,
23 const std::string& error); 24 const std::string& error);
25
26 // Sets the page action ids for a particular extension.
27 static void SetPageActions(const std::string& extension_id,
28 const std::vector<std::string>& page_actions);
24 }; 29 };
25 30
26 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ 31 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698