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

Side by Side Diff: content/browser/devtools/protocol/page_handler.h

Issue 2703253002: devtools: Make it possible to override the navigation referrer (Closed)
Patch Set: Reworked into a inspector protocol test Created 3 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
« no previous file with comments | « no previous file | content/browser/devtools/protocol/page_handler.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 cc::CompositorFrameMetadata frame_metadata); 52 cc::CompositorFrameMetadata frame_metadata);
53 void DidAttachInterstitialPage(); 53 void DidAttachInterstitialPage();
54 void DidDetachInterstitialPage(); 54 void DidDetachInterstitialPage();
55 bool screencast_enabled() const { return enabled_ && screencast_enabled_; } 55 bool screencast_enabled() const { return enabled_ && screencast_enabled_; }
56 56
57 Response Enable() override; 57 Response Enable() override;
58 Response Disable() override; 58 Response Disable() override;
59 59
60 Response Reload(Maybe<bool> bypassCache, 60 Response Reload(Maybe<bool> bypassCache,
61 Maybe<std::string> script_to_evaluate_on_load) override; 61 Maybe<std::string> script_to_evaluate_on_load) override;
62 Response Navigate(const std::string& url, Page::FrameId* frame_id) override; 62 Response Navigate(const std::string& url,
63 Maybe<std::string> referrer,
64 Page::FrameId* frame_id) override;
63 Response StopLoading() override; 65 Response StopLoading() override;
64 66
65 using NavigationEntries = protocol::Array<Page::NavigationEntry>; 67 using NavigationEntries = protocol::Array<Page::NavigationEntry>;
66 Response GetNavigationHistory( 68 Response GetNavigationHistory(
67 int* current_index, 69 int* current_index,
68 std::unique_ptr<NavigationEntries>* entries) override; 70 std::unique_ptr<NavigationEntries>* entries) override;
69 Response NavigateToHistoryEntry(int entry_id) override; 71 Response NavigateToHistoryEntry(int entry_id) override;
70 72
71 void CaptureScreenshot( 73 void CaptureScreenshot(
72 Maybe<std::string> format, 74 Maybe<std::string> format,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 NotificationRegistrar registrar_; 151 NotificationRegistrar registrar_;
150 base::WeakPtrFactory<PageHandler> weak_factory_; 152 base::WeakPtrFactory<PageHandler> weak_factory_;
151 153
152 DISALLOW_COPY_AND_ASSIGN(PageHandler); 154 DISALLOW_COPY_AND_ASSIGN(PageHandler);
153 }; 155 };
154 156
155 } // namespace protocol 157 } // namespace protocol
156 } // namespace content 158 } // namespace content
157 159
158 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ 160 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/protocol/page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698