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

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

Issue 1269813002: Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation-api
Patch Set: Rebase Created 5 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void RegisterInProcessMojoApplications( 280 void RegisterInProcessMojoApplications(
281 StaticMojoApplicationMap* apps) override; 281 StaticMojoApplicationMap* apps) override;
282 void OpenURL(content::BrowserContext* browser_context, 282 void OpenURL(content::BrowserContext* browser_context,
283 const content::OpenURLParams& params, 283 const content::OpenURLParams& params,
284 const base::Callback<void(content::WebContents*)>& callback) 284 const base::Callback<void(content::WebContents*)>& callback)
285 override; 285 override;
286 content::PresentationServiceDelegate* GetPresentationServiceDelegate( 286 content::PresentationServiceDelegate* GetPresentationServiceDelegate(
287 content::WebContents* web_contents) override; 287 content::WebContents* web_contents) override;
288 288
289 void RecordURLMetric(const std::string& metric, const GURL& url) override; 289 void RecordURLMetric(const std::string& metric, const GURL& url) override;
290 ScopedVector<content::NavigationThrottle> GetNavigationThrottles(
291 content::NavigationHandle* handle) override;
290 292
291 private: 293 private:
292 friend class DisableWebRtcEncryptionFlagTest; 294 friend class DisableWebRtcEncryptionFlagTest;
293 295
294 #if defined(ENABLE_WEBRTC) 296 #if defined(ENABLE_WEBRTC)
295 // Copies disable WebRTC encryption switch depending on the channel. 297 // Copies disable WebRTC encryption switch depending on the channel.
296 static void MaybeCopyDisableWebRtcEncryptionSwitch( 298 static void MaybeCopyDisableWebRtcEncryptionSwitch(
297 base::CommandLine* to_command_line, 299 base::CommandLine* to_command_line,
298 const base::CommandLine& from_command_line, 300 const base::CommandLine& from_command_line,
299 version_info::Channel channel); 301 version_info::Channel channel);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 337 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
336 338
337 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 339 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
338 340
339 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 341 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
340 }; 342 };
341 343
342 } // namespace chrome 344 } // namespace chrome
343 345
344 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 346 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698