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

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

Issue 19594005: Use a mock implementation of Platform::crypto() for layout tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master Created 7 years, 4 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
« no previous file with comments | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 10 matching lines...) Expand all
21 class SkBitmap; 21 class SkBitmap;
22 22
23 namespace base { 23 namespace base {
24 class FilePath; 24 class FilePath;
25 class MessageLoop; 25 class MessageLoop;
26 } 26 }
27 27
28 namespace WebKit { 28 namespace WebKit {
29 class WebAudioDevice; 29 class WebAudioDevice;
30 class WebClipboard; 30 class WebClipboard;
31 class WebCrypto;
31 class WebFrame; 32 class WebFrame;
32 class WebHyphenator; 33 class WebHyphenator;
33 class WebMIDIAccessor; 34 class WebMIDIAccessor;
34 class WebMIDIAccessorClient; 35 class WebMIDIAccessorClient;
35 class WebMediaStreamCenter; 36 class WebMediaStreamCenter;
36 class WebMediaStreamCenterClient; 37 class WebMediaStreamCenterClient;
37 class WebPlugin; 38 class WebPlugin;
38 class WebPluginContainer; 39 class WebPluginContainer;
39 class WebPrescientNetworking; 40 class WebPrescientNetworking;
40 class WebRTCPeerConnectionHandler; 41 class WebRTCPeerConnectionHandler;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 152
152 // Allows the embedder to override the WebThemeEngine used. If it returns NULL 153 // Allows the embedder to override the WebThemeEngine used. If it returns NULL
153 // the content layer will provide an engine. 154 // the content layer will provide an engine.
154 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); 155 virtual WebKit::WebThemeEngine* OverrideThemeEngine();
155 156
156 // Allows the embedder to override the WebSpeechSynthesizer used. 157 // Allows the embedder to override the WebSpeechSynthesizer used.
157 // If it returns NULL the content layer will provide an engine. 158 // If it returns NULL the content layer will provide an engine.
158 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer( 159 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer(
159 WebKit::WebSpeechSynthesizerClient* client); 160 WebKit::WebSpeechSynthesizerClient* client);
160 161
162 // Allows the embedder to override the WebCrypto used.
163 // If it returns NULL the content layer will handle crypto.
164 virtual WebKit::WebCrypto* OverrideWebCrypto();
165
161 // Returns true if the renderer process should schedule the idle handler when 166 // Returns true if the renderer process should schedule the idle handler when
162 // all widgets are hidden. 167 // all widgets are hidden.
163 virtual bool RunIdleHandlerWhenWidgetsHidden(); 168 virtual bool RunIdleHandlerWhenWidgetsHidden();
164 169
165 // Returns true if a popup window should be allowed. 170 // Returns true if a popup window should be allowed.
166 virtual bool AllowPopup(); 171 virtual bool AllowPopup();
167 172
168 // Returns true if the navigation was handled by the embedder and should be 173 // Returns true if the navigation was handled by the embedder and should be
169 // ignored by WebKit. This method is used by CEF. 174 // ignored by WebKit. This method is used by CEF.
170 virtual bool HandleNavigation(WebKit::WebFrame* frame, 175 virtual bool HandleNavigation(WebKit::WebFrame* frame,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Returns whether BrowserPlugin should be allowed within the |container|. 243 // Returns whether BrowserPlugin should be allowed within the |container|.
239 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; 244 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const;
240 245
241 // Returns true if the page at |url| can use Pepper MediaStream APIs. 246 // Returns true if the page at |url| can use Pepper MediaStream APIs.
242 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; 247 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const;
243 }; 248 };
244 249
245 } // namespace content 250 } // namespace content
246 251
247 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 252 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698