Chromium Code Reviews| Index: chrome/browser/renderer_host/resource_dispatcher_host_observer.h |
| diff --git a/chrome/browser/renderer_host/resource_dispatcher_host_observer.h b/chrome/browser/renderer_host/resource_dispatcher_host_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6affcfa983f6684bbf1370313614bac259be4a3f |
| --- /dev/null |
| +++ b/chrome/browser/renderer_host/resource_dispatcher_host_observer.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright (c) 2011 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. |
| + |
| +#ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_OBSERVER_H_ |
| +#define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_OBSERVER_H_ |
| +#pragma once |
| + |
| +#include "content/browser/renderer_host/resource_dispatcher_host.h" |
| + |
| +class PrerenderManager; |
| + |
| +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.
|
| + public: |
| + ResourceDispatcherHostObserver(); |
| + virtual ~ResourceDispatcherHostObserver(); |
| + |
| + // ResourceDispatcherHost::Observer implementation. |
| + virtual bool ShouldBeginRequest( |
| + int child_id, int route_id, |
| + const ResourceHostMsg_Request& request_data, |
| + const content::ResourceContext& resource_context, |
| + const GURL& referrer) OVERRIDE; |
| + |
| + virtual void MutateLoadFlags(int child_id, int route_id, |
| + int* load_flags) OVERRIDE; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostObserver); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_OBSERVER_H_ |