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

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

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/common/renderer_preferences.h ('k') | content/public/common/resource_response.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_ 6 #define CONTENT_PUBLIC_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_
7 #pragma once
8 7
9 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
10 #include "webkit/glue/resource_loader_bridge.h" 9 #include "webkit/glue/resource_loader_bridge.h"
11 10
12 namespace content { 11 namespace content {
13 12
14 // Interface that allows observing request events and optionally replacing the 13 // Interface that allows observing request events and optionally replacing the
15 // peer. 14 // peer.
16 class CONTENT_EXPORT ResourceDispatcherDelegate { 15 class CONTENT_EXPORT ResourceDispatcherDelegate {
17 public: 16 public:
18 virtual ~ResourceDispatcherDelegate() {} 17 virtual ~ResourceDispatcherDelegate() {}
19 18
20 virtual webkit_glue::ResourceLoaderBridge::Peer* OnRequestComplete( 19 virtual webkit_glue::ResourceLoaderBridge::Peer* OnRequestComplete(
21 webkit_glue::ResourceLoaderBridge::Peer* current_peer, 20 webkit_glue::ResourceLoaderBridge::Peer* current_peer,
22 ResourceType::Type resource_type, 21 ResourceType::Type resource_type,
23 const net::URLRequestStatus& status) = 0; 22 const net::URLRequestStatus& status) = 0;
24 23
25 virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse( 24 virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse(
26 webkit_glue::ResourceLoaderBridge::Peer* current_peer, 25 webkit_glue::ResourceLoaderBridge::Peer* current_peer,
27 const std::string& mime_type, 26 const std::string& mime_type,
28 const GURL& url) = 0; 27 const GURL& url) = 0;
29 }; 28 };
30 29
31 } // namespace content 30 } // namespace content
32 31
33 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_ 32 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/common/renderer_preferences.h ('k') | content/public/common/resource_response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698