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

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

Issue 7720022: Third-party appcache blocking. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Code review comments (not all). Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Returns the languages used in the Accept-Languages HTTP header. 127 // Returns the languages used in the Accept-Languages HTTP header.
128 // (Not called GetAcceptLanguages so it doesn't clash with win32). 128 // (Not called GetAcceptLanguages so it doesn't clash with win32).
129 virtual std::string GetAcceptLangs(const TabContents* tab) = 0; 129 virtual std::string GetAcceptLangs(const TabContents* tab) = 0;
130 130
131 // Returns the default favicon. The callee doesn't own the given bitmap. 131 // Returns the default favicon. The callee doesn't own the given bitmap.
132 virtual SkBitmap* GetDefaultFavicon() = 0; 132 virtual SkBitmap* GetDefaultFavicon() = 0;
133 133
134 // Allow the embedder to control if an AppCache can be used for the given url. 134 // Allow the embedder to control if an AppCache can be used for the given url.
135 // This is called on the IO thread. 135 // This is called on the IO thread.
136 virtual bool AllowAppCache(const GURL& manifest_url, 136 virtual bool AllowAppCache(const GURL& manifest_url,
137 const GURL& first_party,
137 const content::ResourceContext& context) = 0; 138 const content::ResourceContext& context) = 0;
138 139
139 // Allow the embedder to control if the given cookie can be read. 140 // Allow the embedder to control if the given cookie can be read.
140 // This is called on the IO thread. 141 // This is called on the IO thread.
141 virtual bool AllowGetCookie(const GURL& url, 142 virtual bool AllowGetCookie(const GURL& url,
142 const GURL& first_party, 143 const GURL& first_party,
143 const net::CookieList& cookie_list, 144 const net::CookieList& cookie_list,
144 const content::ResourceContext& context, 145 const content::ResourceContext& context,
145 int render_process_id, 146 int render_process_id,
146 int render_view_id) = 0; 147 int render_view_id) = 0;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // This is called on a worker thread. 307 // This is called on a worker thread.
307 virtual 308 virtual
308 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 309 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
309 const GURL& url) = 0; 310 const GURL& url) = 0;
310 #endif 311 #endif
311 }; 312 };
312 313
313 } // namespace content 314 } // namespace content
314 315
315 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 316 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698