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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2862753002: Mark Render{Frame,View}::GetWebkitPreferences() return values as const. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/renderer/render_frame_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 bool OnMessageReceived(const IPC::Message& msg) override; 426 bool OnMessageReceived(const IPC::Message& msg) override;
427 void OnAssociatedInterfaceRequest( 427 void OnAssociatedInterfaceRequest(
428 const std::string& interface_name, 428 const std::string& interface_name,
429 mojo::ScopedInterfaceEndpointHandle handle) override; 429 mojo::ScopedInterfaceEndpointHandle handle) override;
430 430
431 // RenderFrame implementation: 431 // RenderFrame implementation:
432 RenderView* GetRenderView() override; 432 RenderView* GetRenderView() override;
433 RenderAccessibility* GetRenderAccessibility() override; 433 RenderAccessibility* GetRenderAccessibility() override;
434 int GetRoutingID() override; 434 int GetRoutingID() override;
435 blink::WebLocalFrame* GetWebFrame() override; 435 blink::WebLocalFrame* GetWebFrame() override;
436 WebPreferences& GetWebkitPreferences() override; 436 const WebPreferences& GetWebkitPreferences() override;
437 int ShowContextMenu(ContextMenuClient* client, 437 int ShowContextMenu(ContextMenuClient* client,
438 const ContextMenuParams& params) override; 438 const ContextMenuParams& params) override;
439 void CancelContextMenu(int request_id) override; 439 void CancelContextMenu(int request_id) override;
440 blink::WebPlugin* CreatePlugin( 440 blink::WebPlugin* CreatePlugin(
441 blink::WebFrame* frame, 441 blink::WebFrame* frame,
442 const WebPluginInfo& info, 442 const WebPluginInfo& info,
443 const blink::WebPluginParams& params, 443 const blink::WebPluginParams& params,
444 std::unique_ptr<PluginInstanceThrottler> throttler) override; 444 std::unique_ptr<PluginInstanceThrottler> throttler) override;
445 void LoadURLExternally(const blink::WebURLRequest& request, 445 void LoadURLExternally(const blink::WebURLRequest& request,
446 blink::WebNavigationPolicy policy) override; 446 blink::WebNavigationPolicy policy) override;
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 struct PendingNavigationInfo { 1449 struct PendingNavigationInfo {
1450 blink::WebNavigationType navigation_type; 1450 blink::WebNavigationType navigation_type;
1451 blink::WebNavigationPolicy policy; 1451 blink::WebNavigationPolicy policy;
1452 bool replaces_current_history_item; 1452 bool replaces_current_history_item;
1453 bool history_navigation_in_new_child_frame; 1453 bool history_navigation_in_new_child_frame;
1454 bool client_redirect; 1454 bool client_redirect;
1455 bool cache_disabled; 1455 bool cache_disabled;
1456 blink::WebFormElement form; 1456 blink::WebFormElement form;
1457 blink::WebSourceLocation source_location; 1457 blink::WebSourceLocation source_location;
1458 1458
1459 PendingNavigationInfo(const NavigationPolicyInfo& info); 1459 explicit PendingNavigationInfo(const NavigationPolicyInfo& info);
1460 }; 1460 };
1461 1461
1462 // PlzNavigate: Contains information about a pending navigation to be sent to 1462 // PlzNavigate: Contains information about a pending navigation to be sent to
1463 // the browser. This state is allocated in decidePolicyForNavigation() and 1463 // the browser. This state is allocated in decidePolicyForNavigation() and
1464 // is used and released in didStartProvisionalLoad(). 1464 // is used and released in didStartProvisionalLoad().
1465 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; 1465 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_;
1466 1466
1467 service_manager::BindSourceInfo browser_info_; 1467 service_manager::BindSourceInfo browser_info_;
1468 1468
1469 mojo::BindingSet<service_manager::mojom::InterfaceProvider> 1469 mojo::BindingSet<service_manager::mojom::InterfaceProvider>
1470 interface_provider_bindings_; 1470 interface_provider_bindings_;
1471 1471
1472 mojom::URLLoaderFactoryPtr url_loader_factory_; 1472 mojom::URLLoaderFactoryPtr url_loader_factory_;
1473 1473
1474 // AndroidOverlay routing token from the browser, if we have one yet. 1474 // AndroidOverlay routing token from the browser, if we have one yet.
1475 base::Optional<base::UnguessableToken> overlay_routing_token_; 1475 base::Optional<base::UnguessableToken> overlay_routing_token_;
1476 1476
1477 // Callbacks that we should call when we get a routing token. 1477 // Callbacks that we should call when we get a routing token.
1478 std::vector<media::RoutingTokenCallback> pending_routing_token_callbacks_; 1478 std::vector<media::RoutingTokenCallback> pending_routing_token_callbacks_;
1479 1479
1480 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1480 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1481 1481
1482 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1482 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1483 }; 1483 };
1484 1484
1485 } // namespace content 1485 } // namespace content
1486 1486
1487 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1487 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698