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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 9386001: Implement a module system for the extension bindings JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 const GURL& url, 137 const GURL& url,
138 GURL* new_url) = 0; 138 GURL* new_url) = 0;
139 139
140 // Whether to pump events when sending sync cookie messages. Needed if the 140 // Whether to pump events when sending sync cookie messages. Needed if the
141 // embedder can potentiall put up a modal dialog on the UI thread as a result. 141 // embedder can potentiall put up a modal dialog on the UI thread as a result.
142 virtual bool ShouldPumpEventsDuringCookieMessage() = 0; 142 virtual bool ShouldPumpEventsDuringCookieMessage() = 0;
143 143
144 // See the corresponding functions in WebKit::WebFrameClient. 144 // See the corresponding functions in WebKit::WebFrameClient.
145 virtual void DidCreateScriptContext(WebKit::WebFrame* frame, 145 virtual void DidCreateScriptContext(WebKit::WebFrame* frame,
146 v8::Handle<v8::Context> context, 146 v8::Handle<v8::Context> context,
147 int extension_group,
147 int world_id) = 0; 148 int world_id) = 0;
148 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, 149 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame,
149 v8::Handle<v8::Context>, 150 v8::Handle<v8::Context>,
150 int world_id) = 0; 151 int world_id) = 0;
151 152
152 // See WebKit::WebKitPlatformSupport. 153 // See WebKit::WebKitPlatformSupport.
153 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 154 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
154 size_t length) = 0; 155 size_t length) = 0;
155 virtual bool IsLinkVisited(unsigned long long link_hash) = 0; 156 virtual bool IsLinkVisited(unsigned long long link_hash) = 0;
156 virtual void PrefetchHostName(const char* hostname, size_t length) = 0; 157 virtual void PrefetchHostName(const char* hostname, size_t length) = 0;
(...skipping 18 matching lines...) Expand all
175 virtual void RegisterPPAPIInterfaceFactories( 176 virtual void RegisterPPAPIInterfaceFactories(
176 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; 177 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0;
177 178
178 // Return true if given URL can use TCP/UDP socket APIs. 179 // Return true if given URL can use TCP/UDP socket APIs.
179 virtual bool AllowSocketAPI(const GURL& url) = 0; 180 virtual bool AllowSocketAPI(const GURL& url) = 0;
180 }; 181 };
181 182
182 } // namespace content 183 } // namespace content
183 184
184 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 185 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698