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

Side by Side Diff: ios/web/public/web_client.h

Issue 2661723002: Removed unused WebClient::AllowWebViewAllocInit. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | ios/web/public/web_client.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 IOS_WEB_PUBLIC_WEB_CLIENT_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_CLIENT_H_
6 #define IOS_WEB_PUBLIC_WEB_CLIENT_H_ 6 #define IOS_WEB_PUBLIC_WEB_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual std::string GetAcceptLangs(BrowserState* state) const; 65 virtual std::string GetAcceptLangs(BrowserState* state) const;
66 66
67 // Returns the embedding application locale string. 67 // Returns the embedding application locale string.
68 virtual std::string GetApplicationLocale() const; 68 virtual std::string GetApplicationLocale() const;
69 69
70 // Returns true if URL has application specific schema. Embedder must return 70 // Returns true if URL has application specific schema. Embedder must return
71 // true for every custom app specific schema it supports. For example Chromium 71 // true for every custom app specific schema it supports. For example Chromium
72 // browser would return true for "chrome://about" URL. 72 // browser would return true for "chrome://about" URL.
73 virtual bool IsAppSpecificURL(const GURL& url) const; 73 virtual bool IsAppSpecificURL(const GURL& url) const;
74 74
75 // Returns true if web views can be created using an alloc, init call.
76 // Web view creation using an alloc, init call is disabled by default.
77 // If this is disallowed all web view creation must happen through the
78 // web view creation utils methods that vend a web view.
79 // This is called once (only in debug builds) before the first web view is
80 // created and not called repeatedly.
81 virtual bool AllowWebViewAllocInit() const;
82
83 // Returns text to be displayed for an unsupported plugin. 75 // Returns text to be displayed for an unsupported plugin.
84 virtual base::string16 GetPluginNotSupportedText() const; 76 virtual base::string16 GetPluginNotSupportedText() const;
85 77
86 // Returns a string describing the embedder product name and version, of the 78 // Returns a string describing the embedder product name and version, of the
87 // form "productname/version". Used as part of the user agent string. 79 // form "productname/version". Used as part of the user agent string.
88 virtual std::string GetProduct() const; 80 virtual std::string GetProduct() const;
89 81
90 // Returns the user agent. |desktop_user_agent| is true if desktop user agent 82 // Returns the user agent. |desktop_user_agent| is true if desktop user agent
91 // is requested. 83 // is requested.
92 virtual std::string GetUserAgent(bool desktop_user_agent) const; 84 virtual std::string GetUserAgent(bool desktop_user_agent) const;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* 129 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
138 index_to_traits_callback) {} 130 index_to_traits_callback) {}
139 131
140 // Performs any necessary PostTask API redirection to the task scheduler. 132 // Performs any necessary PostTask API redirection to the task scheduler.
141 virtual void PerformExperimentalTaskSchedulerRedirections() {} 133 virtual void PerformExperimentalTaskSchedulerRedirections() {}
142 }; 134 };
143 135
144 } // namespace web 136 } // namespace web
145 137
146 #endif // IOS_WEB_PUBLIC_WEB_CLIENT_H_ 138 #endif // IOS_WEB_PUBLIC_WEB_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/public/web_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698