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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Rebase + addressed nit Created 4 years, 2 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_content_browser_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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 void OpenURL(content::BrowserContext* browser_context, 304 void OpenURL(content::BrowserContext* browser_context,
305 const content::OpenURLParams& params, 305 const content::OpenURLParams& params,
306 const base::Callback<void(content::WebContents*)>& callback) 306 const base::Callback<void(content::WebContents*)>& callback)
307 override; 307 override;
308 content::PresentationServiceDelegate* GetPresentationServiceDelegate( 308 content::PresentationServiceDelegate* GetPresentationServiceDelegate(
309 content::WebContents* web_contents) override; 309 content::WebContents* web_contents) override;
310 310
311 void RecordURLMetric(const std::string& metric, const GURL& url) override; 311 void RecordURLMetric(const std::string& metric, const GURL& url) override;
312 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( 312 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation(
313 content::NavigationHandle* handle) override; 313 content::NavigationHandle* handle) override;
314 std::unique_ptr<content::NavigationUIData> GetNavigationUIData(
315 content::NavigationHandle* navigation_handle) override;
314 316
315 private: 317 private:
316 friend class DisableWebRtcEncryptionFlagTest; 318 friend class DisableWebRtcEncryptionFlagTest;
317 319
318 #if defined(ENABLE_WEBRTC) 320 #if defined(ENABLE_WEBRTC)
319 // Copies disable WebRTC encryption switch depending on the channel. 321 // Copies disable WebRTC encryption switch depending on the channel.
320 static void MaybeCopyDisableWebRtcEncryptionSwitch( 322 static void MaybeCopyDisableWebRtcEncryptionSwitch(
321 base::CommandLine* to_command_line, 323 base::CommandLine* to_command_line,
322 const base::CommandLine& from_command_line, 324 const base::CommandLine& from_command_line,
323 version_info::Channel channel); 325 version_info::Channel channel);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // Vector of additional ChromeContentBrowserClientParts. 359 // Vector of additional ChromeContentBrowserClientParts.
358 // Parts are deleted in the reverse order they are added. 360 // Parts are deleted in the reverse order they are added.
359 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 361 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
360 362
361 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 363 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
362 364
363 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 365 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
364 }; 366 };
365 367
366 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 368 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698