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

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

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 4 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
« no previous file with comments | « content/public/browser/resource_request_info.h ('k') | content/public/common/resource_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/common/resource_type.h" 11 #include "content/public/common/resource_type.h"
12 12
13 class GURL; 13 class GURL;
14 14
15 namespace content { 15 namespace content {
16 16
17 class RequestPeer; 17 class RequestPeer;
18 18
19 // Interface that allows observing request events and optionally replacing the 19 // Interface that allows observing request events and optionally replacing the
20 // peer. 20 // peer.
21 class CONTENT_EXPORT ResourceDispatcherDelegate { 21 class CONTENT_EXPORT ResourceDispatcherDelegate {
22 public: 22 public:
23 virtual ~ResourceDispatcherDelegate() {} 23 virtual ~ResourceDispatcherDelegate() {}
24 24
25 virtual RequestPeer* OnRequestComplete( 25 virtual RequestPeer* OnRequestComplete(RequestPeer* current_peer,
26 RequestPeer* current_peer, 26 ResourceType resource_type,
27 ResourceType::Type resource_type, 27 int error_code) = 0;
28 int error_code) = 0;
29 28
30 virtual RequestPeer* OnReceivedResponse( 29 virtual RequestPeer* OnReceivedResponse(RequestPeer* current_peer,
31 RequestPeer* current_peer, 30 const std::string& mime_type,
32 const std::string& mime_type, 31 const GURL& url) = 0;
33 const GURL& url) = 0;
34 }; 32 };
35 33
36 } // namespace content 34 } // namespace content
37 35
38 #endif // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_ 36 #endif // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/resource_request_info.h ('k') | content/public/common/resource_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698