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

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

Issue 2393773002: Fix devtools unable to start a shared workers. (Closed)
Patch Set: Created 4 years, 2 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
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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Called by the job when it's starting up. 69 // Called by the job when it's starting up.
70 // Returns false if |url| is not a URL managed by this object. 70 // Returns false if |url| is not a URL managed by this object.
71 bool StartRequest(const net::URLRequest* request, URLRequestChromeJob* job); 71 bool StartRequest(const net::URLRequest* request, URLRequestChromeJob* job);
72 72
73 // Helper function to call StartDataRequest on |source|'s delegate. This is 73 // Helper function to call StartDataRequest on |source|'s delegate. This is
74 // needed because while we want to call URLDataSourceDelegate's method, we 74 // needed because while we want to call URLDataSourceDelegate's method, we
75 // need to add a refcount on the source. 75 // need to add a refcount on the source.
76 static void CallStartRequest( 76 static void CallStartRequest(
77 scoped_refptr<URLDataSourceImpl> source, 77 scoped_refptr<URLDataSourceImpl> source,
78 const std::string& path, 78 const std::string& path,
79 int child_id,
79 const ResourceRequestInfo::WebContentsGetter& wc_getter, 80 const ResourceRequestInfo::WebContentsGetter& wc_getter,
80 int request_id); 81 int request_id);
81 82
82 // Remove a request from the list of pending requests. 83 // Remove a request from the list of pending requests.
83 void RemoveRequest(URLRequestChromeJob* job); 84 void RemoveRequest(URLRequestChromeJob* job);
84 85
85 // Returns true if the job exists in |pending_requests_|. False otherwise. 86 // Returns true if the job exists in |pending_requests_|. False otherwise.
86 // Called by ~URLRequestChromeJob to verify that |pending_requests_| is kept 87 // Called by ~URLRequestChromeJob to verify that |pending_requests_| is kept
87 // up to date. 88 // up to date.
88 bool HasPendingJob(URLRequestChromeJob* job) const; 89 bool HasPendingJob(URLRequestChromeJob* job) const;
(...skipping 18 matching lines...) Expand all
107 108
108 // Creates protocol handler for chrome-devtools://. |is_incognito| should be 109 // Creates protocol handler for chrome-devtools://. |is_incognito| should be
109 // set for incognito profiles. 110 // set for incognito profiles.
110 net::URLRequestJobFactory::ProtocolHandler* 111 net::URLRequestJobFactory::ProtocolHandler*
111 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, 112 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context,
112 bool is_incognito); 113 bool is_incognito);
113 114
114 } // namespace content 115 } // namespace content
115 116
116 #endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_ 117 #endif // CONTENT_BROWSER_WEBUI_URL_DATA_MANAGER_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698