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

Side by Side Diff: content/browser/webui/url_data_manager_backend.h

Issue 11896113: Add chrome-search: access from Instant overlay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Charlie's comments. Created 7 years, 9 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 CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
6 #define CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 6 #define CONTENT_BROWSER_WEBUI_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>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 private: 55 private:
56 friend class URLRequestChromeJob; 56 friend class URLRequestChromeJob;
57 57
58 typedef std::map<std::string, 58 typedef std::map<std::string,
59 scoped_refptr<URLDataSourceImpl> > DataSourceMap; 59 scoped_refptr<URLDataSourceImpl> > DataSourceMap;
60 typedef std::map<RequestID, URLRequestChromeJob*> PendingRequestMap; 60 typedef std::map<RequestID, URLRequestChromeJob*> PendingRequestMap;
61 61
62 // Called by the job when it's starting up. 62 // Called by the job when it's starting up.
63 // Returns false if |url| is not a URL managed by this object. 63 // Returns false if |url| is not a URL managed by this object.
64 bool StartRequest(const GURL& url, URLRequestChromeJob* job); 64 bool StartRequest(const net::URLRequest* request, URLRequestChromeJob* job);
65 65
66 // Helper function to call StartDataRequest on |source|'s delegate. This is 66 // Helper function to call StartDataRequest on |source|'s delegate. This is
67 // needed because while we want to call URLDataSourceDelegate's method, we 67 // needed because while we want to call URLDataSourceDelegate's method, we
68 // need to add a refcount on the source. 68 // need to add a refcount on the source.
69 static void CallStartRequest(scoped_refptr<URLDataSourceImpl> source, 69 static void CallStartRequest(scoped_refptr<URLDataSourceImpl> source,
70 const std::string& path, 70 const std::string& path,
71 bool is_incognito, 71 bool is_incognito,
72 int request_id); 72 int request_id);
73 73
74 // Remove a request from the list of pending requests. 74 // Remove a request from the list of pending requests.
(...skipping 20 matching lines...) Expand all
95 95
96 // Creates protocol handler for chrome-devtools://. |is_incognito| should be 96 // Creates protocol handler for chrome-devtools://. |is_incognito| should be
97 // set for incognito profiles. 97 // set for incognito profiles.
98 net::URLRequestJobFactory::ProtocolHandler* 98 net::URLRequestJobFactory::ProtocolHandler*
99 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, 99 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context,
100 bool is_incognito); 100 bool is_incognito);
101 101
102 } // namespace content 102 } // namespace content
103 103
104 #endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 104 #endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698