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

Side by Side Diff: chrome/browser/ui/webui/chrome_url_data_manager_backend.h

Issue 10700117: Replaced static URLRequestFileJob factory with non-static protocol handler for File jobs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 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
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 CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_BACKEND_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_BACKEND_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_BACKEND_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_BACKEND_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 14 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
15 #include "net/url_request/url_request_job_factory.h" 15 #include "net/url_request/url_request_job_factory.h"
16 16
17 class ChromeURLDataManagerBackend; 17 class ChromeURLDataManagerBackend;
18 class GURL; 18 class GURL;
19 class URLRequestChromeJob; 19 class URLRequestChromeJob;
20 20
21 namespace base { 21 namespace base {
22 class RefCountedMemory; 22 class RefCountedMemory;
23 } 23 }
24 24
25 namespace net { 25 namespace net {
26 class NetworkDelegate;
26 class URLRequest; 27 class URLRequest;
27 class URLRequestJob; 28 class URLRequestJob;
28 } 29 }
29 30
30 // ChromeURLDataManagerBackend is used internally by ChromeURLDataManager on the 31 // ChromeURLDataManagerBackend is used internally by ChromeURLDataManager on the
31 // IO thread. In most cases you can use the API in ChromeURLDataManager and 32 // IO thread. In most cases you can use the API in ChromeURLDataManager and
32 // ignore this class. ChromeURLDataManagerBackend is owned by 33 // ignore this class. ChromeURLDataManagerBackend is owned by
33 // ChromeURLRequestContext. 34 // ChromeURLRequestContext.
34 class ChromeURLDataManagerBackend { 35 class ChromeURLDataManagerBackend {
35 public: 36 public:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // destructed to ensure that the pointers in this map remain valid. 79 // destructed to ensure that the pointers in this map remain valid.
79 PendingRequestMap pending_requests_; 80 PendingRequestMap pending_requests_;
80 81
81 // The ID we'll use for the next request we receive. 82 // The ID we'll use for the next request we receive.
82 RequestID next_request_id_; 83 RequestID next_request_id_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(ChromeURLDataManagerBackend); 85 DISALLOW_COPY_AND_ASSIGN(ChromeURLDataManagerBackend);
85 }; 86 };
86 87
87 net::URLRequestJobFactory::ProtocolHandler* 88 net::URLRequestJobFactory::ProtocolHandler*
88 CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend); 89 CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend,
90 net::NetworkDelegate* network_delegate);
89 91
90 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_BACKEND_H_ 92 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/ui/webui/chrome_url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698