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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host_observer.h

Issue 6966017: Remove a chrome dependency by removing Prerender from ResourceDispatcherHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added generic resource_dispatcher_host_observer Created 9 years, 7 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: 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_

Powered by Google App Engine
This is Rietveld 408576698