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

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

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 years, 6 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 virtual bool ShouldReportDetailedMessageForSource( 285 virtual bool ShouldReportDetailedMessageForSource(
286 const base::string16& source) const; 286 const base::string16& source) const;
287 287
288 // Returns true if we should gather stats during resource loads as if the 288 // Returns true if we should gather stats during resource loads as if the
289 // cross-site document blocking policy were enabled. Does not actually block 289 // cross-site document blocking policy were enabled. Does not actually block
290 // any pages. 290 // any pages.
291 virtual bool ShouldGatherSiteIsolationStats() const; 291 virtual bool ShouldGatherSiteIsolationStats() const;
292 292
293 // Creates a permission client for in-renderer worker. 293 // Creates a permission client for in-renderer worker.
294 virtual std::unique_ptr<blink::WebContentSettingsClient> 294 virtual std::unique_ptr<blink::WebContentSettingsClient>
295 CreateWorkerContentSettingsClient(RenderFrame* render_frame, 295 CreateWorkerContentSettingsClient(RenderFrame* render_frame);
296 blink::WebFrame* frame);
297 296
298 // Returns true if the page at |url| can use Pepper CameraDevice APIs. 297 // Returns true if the page at |url| can use Pepper CameraDevice APIs.
299 virtual bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url); 298 virtual bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url);
300 299
301 // Returns true if the page at |url| can use Pepper Compositor APIs. 300 // Returns true if the page at |url| can use Pepper Compositor APIs.
302 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); 301 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url);
303 302
304 // Returns true if dev channel APIs are available for plugins. 303 // Returns true if dev channel APIs are available for plugins.
305 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 304 virtual bool IsPluginAllowedToUseDevChannelAPIs();
306 305
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 virtual std::unique_ptr<base::TaskScheduler::InitParams> 367 virtual std::unique_ptr<base::TaskScheduler::InitParams>
369 GetTaskSchedulerInitParams(); 368 GetTaskSchedulerInitParams();
370 369
371 // Returns true if the media pipeline can be suspended, or false otherwise. 370 // Returns true if the media pipeline can be suspended, or false otherwise.
372 virtual bool AllowMediaSuspend(); 371 virtual bool AllowMediaSuspend();
373 }; 372 };
374 373
375 } // namespace content 374 } // namespace content
376 375
377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 376 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/renderer/associated_resource_fetcher.h ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698