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

Side by Side Diff: chrome/browser/renderer_host/offline_resource_handler.h

Issue 8680036: Move ResourceResponse struct into the Content API, since it's used in Chrome. While at it, I also... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add gypi changes Created 9 years, 1 month 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) 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 CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 int render_view_id, 28 int render_view_id,
29 ResourceDispatcherHost* rdh, 29 ResourceDispatcherHost* rdh,
30 net::URLRequest* request, 30 net::URLRequest* request,
31 ChromeAppCacheService* appcache_service); 31 ChromeAppCacheService* appcache_service);
32 virtual ~OfflineResourceHandler(); 32 virtual ~OfflineResourceHandler();
33 33
34 // ResourceHandler implementation: 34 // ResourceHandler implementation:
35 virtual bool OnUploadProgress(int request_id, uint64 position, 35 virtual bool OnUploadProgress(int request_id, uint64 position,
36 uint64 size) OVERRIDE; 36 uint64 size) OVERRIDE;
37 virtual bool OnRequestRedirected(int request_id, const GURL& new_url, 37 virtual bool OnRequestRedirected(int request_id, const GURL& new_url,
38 ResourceResponse* response, bool* defer) OVERRIDE; 38 content::ResourceResponse* response, bool* defer) OVERRIDE;
39 virtual bool OnResponseStarted(int request_id, 39 virtual bool OnResponseStarted(int request_id,
40 ResourceResponse* response) OVERRIDE; 40 content::ResourceResponse* response) OVERRIDE;
41 virtual bool OnWillStart(int request_id, const GURL& url, 41 virtual bool OnWillStart(int request_id, const GURL& url,
42 bool* defer) OVERRIDE; 42 bool* defer) OVERRIDE;
43 virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, 43 virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
44 int min_size) OVERRIDE; 44 int min_size) OVERRIDE;
45 virtual bool OnReadCompleted(int request_id, int* bytes_read) OVERRIDE; 45 virtual bool OnReadCompleted(int request_id, int* bytes_read) OVERRIDE;
46 virtual bool OnResponseCompleted(int request_id, 46 virtual bool OnResponseCompleted(int request_id,
47 const net::URLRequestStatus& status, 47 const net::URLRequestStatus& status,
48 const std::string& security_info) OVERRIDE; 48 const std::string& security_info) OVERRIDE;
49 virtual void OnRequestClosed() OVERRIDE; 49 virtual void OnRequestClosed() OVERRIDE;
50 50
(...skipping 29 matching lines...) Expand all
80 int deferred_request_id_; 80 int deferred_request_id_;
81 GURL deferred_url_; 81 GURL deferred_url_;
82 82
83 scoped_refptr<net::CancelableOldCompletionCallback<OfflineResourceHandler> > 83 scoped_refptr<net::CancelableOldCompletionCallback<OfflineResourceHandler> >
84 appcache_completion_callback_; 84 appcache_completion_callback_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(OfflineResourceHandler); 86 DISALLOW_COPY_AND_ASSIGN(OfflineResourceHandler);
87 }; 87 };
88 88
89 #endif // CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ 89 #endif // CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698