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

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

Issue 7828103: Forward declare v8::Extension in chrome/renderer/extensions/*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 9 #pragma once
10 10
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "v8/include/v8.h"
16
17 class ExtensionRendererContext; 15 class ExtensionRendererContext;
18 class GURL; 16 class GURL;
19 class URLPattern; 17 class URLPattern;
20 18
21 namespace WebKit { 19 namespace WebKit {
22 class WebView; 20 class WebView;
23 } 21 }
24 22
23 namespace v8 {
24 class Extension;
25 }
26
25 class ExtensionProcessBindings { 27 class ExtensionProcessBindings {
26 public: 28 public:
27 static v8::Extension* Get( 29 static v8::Extension* Get(
28 ExtensionRendererContext* extension_renderer_context); 30 ExtensionRendererContext* extension_renderer_context);
29 31
30 // Handles a response to an API request. 32 // Handles a response to an API request.
31 static void HandleResponse(int request_id, bool success, 33 static void HandleResponse(int request_id, bool success,
32 const std::string& response, 34 const std::string& response,
33 const std::string& error); 35 const std::string& error);
34 }; 36 };
35 37
36 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ 38 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/event_bindings.h ('k') | chrome/renderer/extensions/extension_process_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698