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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Added missing comment Created 4 years, 3 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 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void OpenURL(content::BrowserContext* browser_context, 302 void OpenURL(content::BrowserContext* browser_context,
303 const content::OpenURLParams& params, 303 const content::OpenURLParams& params,
304 const base::Callback<void(content::WebContents*)>& callback) 304 const base::Callback<void(content::WebContents*)>& callback)
305 override; 305 override;
306 content::PresentationServiceDelegate* GetPresentationServiceDelegate( 306 content::PresentationServiceDelegate* GetPresentationServiceDelegate(
307 content::WebContents* web_contents) override; 307 content::WebContents* web_contents) override;
308 308
309 void RecordURLMetric(const std::string& metric, const GURL& url) override; 309 void RecordURLMetric(const std::string& metric, const GURL& url) override;
310 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( 310 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation(
311 content::NavigationHandle* handle) override; 311 content::NavigationHandle* handle) override;
312 std::unique_ptr<content::NavigationUIData> GetNavigationUIData(
313 content::NavigationHandle* navigation_handle) override;
312 314
313 private: 315 private:
314 friend class DisableWebRtcEncryptionFlagTest; 316 friend class DisableWebRtcEncryptionFlagTest;
315 317
316 #if defined(ENABLE_WEBRTC) 318 #if defined(ENABLE_WEBRTC)
317 // Copies disable WebRTC encryption switch depending on the channel. 319 // Copies disable WebRTC encryption switch depending on the channel.
318 static void MaybeCopyDisableWebRtcEncryptionSwitch( 320 static void MaybeCopyDisableWebRtcEncryptionSwitch(
319 base::CommandLine* to_command_line, 321 base::CommandLine* to_command_line,
320 const base::CommandLine& from_command_line, 322 const base::CommandLine& from_command_line,
321 version_info::Channel channel); 323 version_info::Channel channel);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // Vector of additional ChromeContentBrowserClientParts. 357 // Vector of additional ChromeContentBrowserClientParts.
356 // Parts are deleted in the reverse order they are added. 358 // Parts are deleted in the reverse order they are added.
357 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 359 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
358 360
359 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 361 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
360 362
361 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 363 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
362 }; 364 };
363 365
364 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 366 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698