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

Side by Side Diff: content/public/browser/intercept_navigation_resource_throttle.h

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed chromeos build issue + rebase Created 8 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
6 #define CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
7 #pragma once
8
9 #include <string>
10
11 #include "content/common/content_export.h"
12 #include "content/public/browser/resource_throttle.h"
13
14 namespace net {
15 class URLRequest;
16 } // namespace net
17
18 namespace content {
19
20 // This class allows the embedder (via WebContentsDelegate) to selectively
21 // ignore top level navigations.
22 class CONTENT_EXPORT InterceptNavigationResourceThrottle :
23 public content::ResourceThrottle {
24 public:
25 static InterceptNavigationResourceThrottle*
26 Create(net::URLRequest* request);
27 virtual ~InterceptNavigationResourceThrottle() {}
28
29 protected:
30 InterceptNavigationResourceThrottle() {}
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(InterceptNavigationResourceThrottle);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698