Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_OBSERVER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "content/browser/renderer_host/resource_dispatcher_host.h" | |
| 10 | |
| 11 class PrerenderManager; | |
| 12 | |
| 13 class ResourceDispatcherHostObserver : public ResourceDispatcherHost::Observer { | |
|
jam
2011/05/24 16:06:24
sorry I realize I suggested ResourceDispatcherHost
dominich
2011/05/24 16:54:21
Done.
| |
| 14 public: | |
| 15 ResourceDispatcherHostObserver(); | |
| 16 virtual ~ResourceDispatcherHostObserver(); | |
| 17 | |
| 18 // ResourceDispatcherHost::Observer implementation. | |
| 19 virtual bool ShouldBeginRequest( | |
| 20 int child_id, int route_id, | |
| 21 const ResourceHostMsg_Request& request_data, | |
| 22 const content::ResourceContext& resource_context, | |
| 23 const GURL& referrer) OVERRIDE; | |
| 24 | |
| 25 virtual void MutateLoadFlags(int child_id, int route_id, | |
| 26 int* load_flags) OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostObserver); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_OBSERVER_H_ | |
| OLD | NEW |