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

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

Issue 10025007: Convert tabs, windows, and extension APIs to feature system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blah Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 98 }
99 bool IsOtherExtensionWithWebRequestInstalled() const { 99 bool IsOtherExtensionWithWebRequestInstalled() const {
100 return webrequest_other_; 100 return webrequest_other_;
101 } 101 }
102 102
103 void OnExtensionResponse(int request_id, 103 void OnExtensionResponse(int request_id,
104 bool success, 104 bool success,
105 const std::string& response, 105 const std::string& response,
106 const std::string& error); 106 const std::string& error);
107 107
108 // Checks that the current context contains an extension that has permission
109 // to execute the specified function. If it does not, a v8 exception is thrown
110 // and the method returns false. Otherwise returns true.
111 bool CheckCurrentContextAccessToExtensionAPI(
112 const std::string& function_name) const;
113
114 private: 108 private:
115 friend class RenderViewTest; 109 friend class RenderViewTest;
116 typedef void (*BindingInstaller)(ModuleSystem* module_system, 110 typedef void (*BindingInstaller)(ModuleSystem* module_system,
117 v8::Handle<v8::Object> chrome, 111 v8::Handle<v8::Object> chrome,
118 v8::Handle<v8::Object> chrome_hidden); 112 v8::Handle<v8::Object> chrome_hidden);
119 113
120 // RenderProcessObserver implementation: 114 // RenderProcessObserver implementation:
121 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 115 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
122 virtual void WebKitInitialized() OVERRIDE; 116 virtual void WebKitInitialized() OVERRIDE;
123 virtual void IdleNotification() OVERRIDE; 117 virtual void IdleNotification() OVERRIDE;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // them. 228 // them.
235 std::map<std::string, BindingInstaller> lazy_bindings_map_; 229 std::map<std::string, BindingInstaller> lazy_bindings_map_;
236 230
237 // Sends API requests to the extension host. 231 // Sends API requests to the extension host.
238 scoped_ptr<ExtensionRequestSender> request_sender_; 232 scoped_ptr<ExtensionRequestSender> request_sender_;
239 233
240 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); 234 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher);
241 }; 235 };
242 236
243 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 237 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_custom_bindings.cc ('k') | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698