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

Side by Side Diff: content/public/child/resource_dispatcher_delegate.h

Issue 186193005: Move resource_loader_bridge to content/public/child/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
6 #define CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_ 6 #define CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "webkit/child/resource_loader_bridge.h" 9 #include "content/public/child/resource_loader_bridge.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // Interface that allows observing request events and optionally replacing the 13 // Interface that allows observing request events and optionally replacing the
14 // peer. 14 // peer.
15 class CONTENT_EXPORT ResourceDispatcherDelegate { 15 class CONTENT_EXPORT ResourceDispatcherDelegate {
16 public: 16 public:
17 virtual ~ResourceDispatcherDelegate() {} 17 virtual ~ResourceDispatcherDelegate() {}
18 18
19 virtual webkit_glue::ResourceLoaderBridge::Peer* OnRequestComplete( 19 virtual ResourceLoaderBridge::Peer* OnRequestComplete(
20 webkit_glue::ResourceLoaderBridge::Peer* current_peer, 20 ResourceLoaderBridge::Peer* current_peer,
21 ResourceType::Type resource_type, 21 ResourceType::Type resource_type,
22 int error_code) = 0; 22 int error_code) = 0;
23 23
24 virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse( 24 virtual ResourceLoaderBridge::Peer* OnReceivedResponse(
25 webkit_glue::ResourceLoaderBridge::Peer* current_peer, 25 ResourceLoaderBridge::Peer* current_peer,
26 const std::string& mime_type, 26 const std::string& mime_type,
27 const GURL& url) = 0; 27 const GURL& url) = 0;
28 }; 28 };
29 29
30 } // namespace content 30 } // namespace content
31 31
32 #endif // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_ 32 #endif // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698