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

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

Issue 7135003: Remove last extension dependencies from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 9 years, 6 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 // Adds a newly-generated client cert. The embedder should ensure that there's 135 // Adds a newly-generated client cert. The embedder should ensure that there's
136 // a private key for the cert, displays the cert to the user, and adds it upon 136 // a private key for the cert, displays the cert to the user, and adds it upon
137 // user approval. 137 // user approval.
138 virtual void AddNewCertificate( 138 virtual void AddNewCertificate(
139 net::URLRequest* request, 139 net::URLRequest* request,
140 net::X509Certificate* cert, 140 net::X509Certificate* cert,
141 int render_process_id, 141 int render_process_id,
142 int render_view_id); 142 int render_view_id);
143 143
144 // Checks if the given page has access to the background window permission.
145 // This is called on the IO thread.
146 virtual bool CheckBackgroundPermission(
147 const GURL& source_url, const content::ResourceContext& context);
148
149 // Returns a title string to use in the task manager for a process host with
jam 2011/06/07 23:17:53 I think this is only called on the IO thread right
Matt Perry 2011/06/07 23:58:10 Done.
150 // the given URL, or the empty string to fall back to the default logic.
151 virtual std::string GetProcessHostTitle(
152 const GURL& url, const content::ResourceContext& context);
153
154 // Returns true if we should force the given resource to be downloaded.
155 // Otherwise, the content layer decides.
jam 2011/06/07 23:17:53 ditto about IO thread
Matt Perry 2011/06/07 23:58:10 Done.
156 virtual bool ShouldForceDownloadResource(
157 const GURL& url, const std::string& mime_type);
158
144 #if defined(OS_POSIX) && !defined(OS_MACOSX) 159 #if defined(OS_POSIX) && !defined(OS_MACOSX)
145 // Can return an optional fd for crash handling, otherwise returns -1. 160 // Can return an optional fd for crash handling, otherwise returns -1.
146 virtual int GetCrashSignalFD(const std::string& process_type); 161 virtual int GetCrashSignalFD(const std::string& process_type);
147 #endif 162 #endif
148 }; 163 };
149 164
150 } // namespace content 165 } // namespace content
151 166
152 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 167 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698