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

Side by Side Diff: webkit/appcache/appcache_request_handler.h

Issue 5384002: net: Remove typedef net::URLRequest URLRequest; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_
6 #define WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_
7 7
8 #include "net/url_request/url_request.h" 8 #include "net/url_request/url_request.h"
9 #include "webkit/appcache/appcache_entry.h" 9 #include "webkit/appcache/appcache_entry.h"
10 #include "webkit/appcache/appcache_host.h" 10 #include "webkit/appcache/appcache_host.h"
11 #include "webkit/glue/resource_type.h" 11 #include "webkit/glue/resource_type.h"
12 12
13 namespace net { 13 namespace net {
14 class URLRequest; 14 class URLRequest;
15 class URLRequestJob; 15 class URLRequestJob;
16 } // namespace net 16 } // namespace net
17 17
18 namespace appcache { 18 namespace appcache {
19 19
20 class AppCacheURLRequestJob; 20 class AppCacheURLRequestJob;
21 21
22 // An instance is created for each URLRequest. The instance survives all 22 // An instance is created for each net::URLRequest. The instance survives all
23 // http transactions involved in the processing of its URLRequest, and is 23 // http transactions involved in the processing of its net::URLRequest, and is
24 // given the opportunity to hijack the request along the way. Callers 24 // given the opportunity to hijack the request along the way. Callers
25 // should use AppCacheHost::CreateRequestHandler to manufacture instances 25 // should use AppCacheHost::CreateRequestHandler to manufacture instances
26 // that can retrieve resources for a particular host. 26 // that can retrieve resources for a particular host.
27 class AppCacheRequestHandler : public net::URLRequest::UserData, 27 class AppCacheRequestHandler : public net::URLRequest::UserData,
28 public AppCacheHost::Observer, 28 public AppCacheHost::Observer,
29 public AppCacheStorage::Delegate { 29 public AppCacheStorage::Delegate {
30 public: 30 public:
31 virtual ~AppCacheRequestHandler(); 31 virtual ~AppCacheRequestHandler();
32 32
33 // These are called on each request intercept opportunity. 33 // These are called on each request intercept opportunity.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 scoped_refptr<AppCacheURLRequestJob> job_; 118 scoped_refptr<AppCacheURLRequestJob> job_;
119 119
120 friend class AppCacheRequestHandlerTest; 120 friend class AppCacheRequestHandlerTest;
121 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); 121 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler);
122 }; 122 };
123 123
124 } // namespace appcache 124 } // namespace appcache
125 125
126 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ 126 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_
127 127
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698