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

Unified Diff: content/public/browser/navigation_throttle.cc

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 on https://codereview.chromium.org/1312213010/ 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/navigation_throttle.h ('k') | content/test/web_contents_observer_sanity_checker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_throttle.cc
diff --git a/content/public/browser/navigation_throttle.cc b/content/public/browser/navigation_throttle.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ac3b3aa405654418ac2e76e63b2380bc4ed16164
--- /dev/null
+++ b/content/public/browser/navigation_throttle.cc
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/browser/navigation_throttle.h"
+
+namespace content {
+
+NavigationThrottle::NavigationThrottle(NavigationHandle* navigation_handle)
+ : navigation_handle_(navigation_handle) {}
+
+NavigationThrottle::~NavigationThrottle() {}
+
+NavigationThrottle::ThrottleCheckResult NavigationThrottle::WillStartRequest() {
+ return NavigationThrottle::PROCEED;
+}
+
+NavigationThrottle::ThrottleCheckResult
+NavigationThrottle::WillRedirectRequest() {
+ return NavigationThrottle::PROCEED;
+}
+
+} // namespace content
« no previous file with comments | « content/public/browser/navigation_throttle.h ('k') | content/test/web_contents_observer_sanity_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698