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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 1985983002: WebUI: shuffle less between threads when responding to requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 const GURL& effective_url); 207 const GURL& effective_url);
208 208
209 // Returns a list additional WebUI schemes, if any. These additional schemes 209 // Returns a list additional WebUI schemes, if any. These additional schemes
210 // act as aliases to the chrome: scheme. The additional schemes may or may 210 // act as aliases to the chrome: scheme. The additional schemes may or may
211 // not serve specific WebUI pages depending on the particular URLDataSource 211 // not serve specific WebUI pages depending on the particular URLDataSource
212 // and its override of URLDataSource::ShouldServiceRequest. For all schemes 212 // and its override of URLDataSource::ShouldServiceRequest. For all schemes
213 // returned here, view-source is allowed. 213 // returned here, view-source is allowed.
214 virtual void GetAdditionalWebUISchemes( 214 virtual void GetAdditionalWebUISchemes(
215 std::vector<std::string>* additional_schemes) {} 215 std::vector<std::string>* additional_schemes) {}
216 216
217 // Returns a list of webUI hosts to ignore the storage partition check in
218 // URLRequestChromeJob::CheckStoragePartitionMatches.
219 virtual void GetAdditionalWebUIHostsToIgnoreParititionCheck(
220 std::vector<std::string>* hosts) {}
221
222 // Called when WebUI objects are created to get aggregate usage data (i.e. is 217 // Called when WebUI objects are created to get aggregate usage data (i.e. is
223 // chrome://downloads used more than chrome://bookmarks?). Only internal (e.g. 218 // chrome://downloads used more than chrome://bookmarks?). Only internal (e.g.
224 // chrome://) URLs are logged. Returns whether the URL was actually logged. 219 // chrome://) URLs are logged. Returns whether the URL was actually logged.
225 virtual bool LogWebUIUrl(const GURL& web_ui_url) const; 220 virtual bool LogWebUIUrl(const GURL& web_ui_url) const;
226 221
227 // Returns whether a specified URL is handled by the embedder's internal 222 // Returns whether a specified URL is handled by the embedder's internal
228 // protocol handlers. 223 // protocol handlers.
229 virtual bool IsHandledURL(const GURL& url); 224 virtual bool IsHandledURL(const GURL& url);
230 225
231 // Returns whether the given process is allowed to commit |url|. This is a 226 // Returns whether the given process is allowed to commit |url|. This is a
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 767 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
773 // implementation. Return nullptr to disable external surface video. 768 // implementation. Return nullptr to disable external surface video.
774 virtual ExternalVideoSurfaceContainer* 769 virtual ExternalVideoSurfaceContainer*
775 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 770 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
776 #endif 771 #endif
777 }; 772 };
778 773
779 } // namespace content 774 } // namespace content
780 775
781 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 776 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698