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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2746043003: Fix user agent overridding with PlzNavigate. (Closed)
Patch Set: without PlzNavigate Created 3 years, 9 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 RenderFrameHostImpl* render_frame_host, 596 RenderFrameHostImpl* render_frame_host,
597 const LoadCommittedDetails& details, 597 const LoadCommittedDetails& details,
598 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; 598 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override;
599 void SetMainFrameMimeType(const std::string& mime_type) override; 599 void SetMainFrameMimeType(const std::string& mime_type) override;
600 bool CanOverscrollContent() const override; 600 bool CanOverscrollContent() const override;
601 void NotifyChangedNavigationState(InvalidateTypes changed_flags) override; 601 void NotifyChangedNavigationState(InvalidateTypes changed_flags) override;
602 void DidStartNavigationToPendingEntry(const GURL& url, 602 void DidStartNavigationToPendingEntry(const GURL& url,
603 ReloadType reload_type) override; 603 ReloadType reload_type) override;
604 bool ShouldTransferNavigation(bool is_main_frame_navigation) override; 604 bool ShouldTransferNavigation(bool is_main_frame_navigation) override;
605 bool ShouldPreserveAbortedURLs() override; 605 bool ShouldPreserveAbortedURLs() override;
606 const std::string& GetNavigationUserAgentOverride() override;
606 void DidStartLoading(FrameTreeNode* frame_tree_node, 607 void DidStartLoading(FrameTreeNode* frame_tree_node,
607 bool to_different_document) override; 608 bool to_different_document) override;
608 void DidStopLoading() override; 609 void DidStopLoading() override;
609 void DidChangeLoadProgress() override; 610 void DidChangeLoadProgress() override;
610 std::vector<std::unique_ptr<NavigationThrottle>> CreateThrottlesForNavigation( 611 std::vector<std::unique_ptr<NavigationThrottle>> CreateThrottlesForNavigation(
611 NavigationHandle* navigation_handle) override; 612 NavigationHandle* navigation_handle) override;
612 std::unique_ptr<NavigationUIData> GetNavigationUIData( 613 std::unique_ptr<NavigationUIData> GetNavigationUIData(
613 NavigationHandle* navigation_handle) override; 614 NavigationHandle* navigation_handle) override;
614 615
615 // RenderWidgetHostDelegate -------------------------------------------------- 616 // RenderWidgetHostDelegate --------------------------------------------------
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 // Adds/removes a callback called on creation of each new WebContents. 1544 // Adds/removes a callback called on creation of each new WebContents.
1544 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1545 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1545 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1546 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1546 1547
1547 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1548 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1548 }; 1549 };
1549 1550
1550 } // namespace content 1551 } // namespace content
1551 1552
1552 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1553 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698