Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / public / child / resource_dispatcher_delegate.h
index 8c67e07..1c61688 100644 (file)
@@ -1,32 +1,38 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.\r
-// Use of this source code is governed by a BSD-style license that can be\r
-// found in the LICENSE file.\r
-\r
-#ifndef CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_\r
-#define CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_\r
-\r
-#include "content/common/content_export.h"\r
-#include "webkit/child/resource_loader_bridge.h"\r
-\r
-namespace content {\r
-\r
-// Interface that allows observing request events and optionally replacing the\r
-// peer.\r
-class CONTENT_EXPORT ResourceDispatcherDelegate {\r
- public:\r
-  virtual ~ResourceDispatcherDelegate() {}\r
-\r
-  virtual webkit_glue::ResourceLoaderBridge::Peer* OnRequestComplete(\r
-      webkit_glue::ResourceLoaderBridge::Peer* current_peer,\r
-      ResourceType::Type resource_type,\r
-      int error_code) = 0;\r
-\r
-  virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse(\r
-      webkit_glue::ResourceLoaderBridge::Peer* current_peer,\r
-      const std::string& mime_type,\r
-      const GURL& url) = 0;\r
-};\r
-\r
-}  // namespace content\r
-\r
-#endif  // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_\r
+// Copyright (c) 2012 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 CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
+#define CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
+
+#include <string>
+
+#include "content/common/content_export.h"
+#include "webkit/common/resource_type.h"
+
+class GURL;
+
+namespace content {
+
+class RequestPeer;
+
+// Interface that allows observing request events and optionally replacing the
+// peer.
+class CONTENT_EXPORT ResourceDispatcherDelegate {
+ public:
+  virtual ~ResourceDispatcherDelegate() {}
+
+  virtual RequestPeer* OnRequestComplete(
+      RequestPeer* current_peer,
+      ResourceType::Type resource_type,
+      int error_code) = 0;
+
+  virtual RequestPeer* OnReceivedResponse(
+      RequestPeer* current_peer,
+      const std::string& mime_type,
+      const GURL& url) = 0;
+};
+
+}  // namespace content
+
+#endif  // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_