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

Unified Diff: components/navigation_interception/intercept_navigation_resource_throttle.h

Issue 11830043: Move content/components/navigation_interception to src/components (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/navigation_interception/intercept_navigation_resource_throttle.h
diff --git a/content/components/navigation_interception/intercept_navigation_resource_throttle.h b/components/navigation_interception/intercept_navigation_resource_throttle.h
similarity index 66%
rename from content/components/navigation_interception/intercept_navigation_resource_throttle.h
rename to components/navigation_interception/intercept_navigation_resource_throttle.h
index cbff6014423764162b5ef3e49a90d3118ad10a3d..7bfe6fac4be9e29b2147e803c9af88a21a7b3b43 100644
--- a/content/components/navigation_interception/intercept_navigation_resource_throttle.h
+++ b/components/navigation_interception/intercept_navigation_resource_throttle.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
-#define CONTENT_COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
+#ifndef COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
+#define COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
#include <string>
@@ -23,18 +23,19 @@ namespace net {
class URLRequest;
}
-namespace content {
+namespace components {
// This class allows the provider of the Callback to selectively ignore top
// level navigations.
class InterceptNavigationResourceThrottle : public content::ResourceThrottle {
public:
- typedef base::Callback<bool(content::RenderViewHost* /* source */,
- const GURL& /* url */,
- const content::Referrer& /*referrer*/,
- bool /* is_post */,
- bool /* has_user_gesture */,
- PageTransition /* page transition type */)>
+ typedef base::Callback<
+ bool(content::RenderViewHost* /* source */,
+ const GURL& /* url */,
+ const content::Referrer& /*referrer*/,
+ bool /* is_post */,
+ bool /* has_user_gesture */,
+ content::PageTransition /* page transition type */)>
CheckOnUIThreadCallback;
InterceptNavigationResourceThrottle(
@@ -57,6 +58,6 @@ class InterceptNavigationResourceThrottle : public content::ResourceThrottle {
DISALLOW_COPY_AND_ASSIGN(InterceptNavigationResourceThrottle);
};
-} // namespace content
+} // namespace components
-#endif // CONTENT_COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
+#endif // COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_

Powered by Google App Engine
This is Rietveld 408576698