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

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

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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) 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 16 matching lines...) Expand all
27 #include "webkit/common/resource_type.h" 27 #include "webkit/common/resource_type.h"
28 28
29 #if defined(OS_POSIX) && !defined(OS_MACOSX) 29 #if defined(OS_POSIX) && !defined(OS_MACOSX)
30 #include "base/posix/global_descriptors.h" 30 #include "base/posix/global_descriptors.h"
31 #endif 31 #endif
32 32
33 #if defined(OS_POSIX) 33 #if defined(OS_POSIX)
34 #include "content/public/browser/file_descriptor_info.h" 34 #include "content/public/browser/file_descriptor_info.h"
35 #endif 35 #endif
36 36
37 class CommandLine;
38 class GURL; 37 class GURL;
39 struct WebPreferences; 38 struct WebPreferences;
40 39
40 namespace base {
41 class CommandLine;
42 class DictionaryValue;
43 class FilePath;
44 }
45
41 namespace blink { 46 namespace blink {
42 struct WebWindowFeatures; 47 struct WebWindowFeatures;
43 } 48 }
44 49
45 namespace base {
46 class DictionaryValue;
47 class FilePath;
48 }
49
50 namespace gfx { 50 namespace gfx {
51 class ImageSkia; 51 class ImageSkia;
52 } 52 }
53 53
54 namespace net { 54 namespace net {
55 class CookieOptions; 55 class CookieOptions;
56 class CookieStore; 56 class CookieStore;
57 class HttpNetworkSession; 57 class HttpNetworkSession;
58 class NetLog; 58 class NetLog;
59 class SSLCertRequestInfo; 59 class SSLCertRequestInfo;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Returns true if the passed in URL should be assigned as the site of the 275 // Returns true if the passed in URL should be assigned as the site of the
276 // current SiteInstance, if it does not yet have a site. 276 // current SiteInstance, if it does not yet have a site.
277 virtual bool ShouldAssignSiteForURL(const GURL& url); 277 virtual bool ShouldAssignSiteForURL(const GURL& url);
278 278
279 // See CharacterEncoding's comment. 279 // See CharacterEncoding's comment.
280 virtual std::string GetCanonicalEncodingNameByAliasName( 280 virtual std::string GetCanonicalEncodingNameByAliasName(
281 const std::string& alias_name); 281 const std::string& alias_name);
282 282
283 // Allows the embedder to pass extra command line flags. 283 // Allows the embedder to pass extra command line flags.
284 // switches::kProcessType will already be set at this point. 284 // switches::kProcessType will already be set at this point.
285 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 285 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
286 int child_process_id) {} 286 int child_process_id) {}
287 287
288 // Returns the locale used by the application. 288 // Returns the locale used by the application.
289 // This is called on the UI and IO threads. 289 // This is called on the UI and IO threads.
290 virtual std::string GetApplicationLocale(); 290 virtual std::string GetApplicationLocale();
291 291
292 // Returns the languages used in the Accept-Languages HTTP header. 292 // Returns the languages used in the Accept-Languages HTTP header.
293 // (Not called GetAcceptLanguages so it doesn't clash with win32). 293 // (Not called GetAcceptLanguages so it doesn't clash with win32).
294 virtual std::string GetAcceptLangs(BrowserContext* context); 294 virtual std::string GetAcceptLangs(BrowserContext* context);
295 295
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 // Return NULL to use the default one for the platform to be created. 598 // Return NULL to use the default one for the platform to be created.
599 // FYI: Used by an external project; please don't remove. 599 // FYI: Used by an external project; please don't remove.
600 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more 600 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more
601 // information. 601 // information.
602 virtual VibrationProvider* OverrideVibrationProvider(); 602 virtual VibrationProvider* OverrideVibrationProvider();
603 603
604 #if defined(OS_POSIX) && !defined(OS_MACOSX) 604 #if defined(OS_POSIX) && !defined(OS_MACOSX)
605 // Populates |mappings| with all files that need to be mapped before launching 605 // Populates |mappings| with all files that need to be mapped before launching
606 // a child process. 606 // a child process.
607 virtual void GetAdditionalMappedFilesForChildProcess( 607 virtual void GetAdditionalMappedFilesForChildProcess(
608 const CommandLine& command_line, 608 const base::CommandLine& command_line,
609 int child_process_id, 609 int child_process_id,
610 std::vector<FileDescriptorInfo>* mappings) {} 610 std::vector<FileDescriptorInfo>* mappings) {}
611 #endif 611 #endif
612 612
613 #if defined(OS_WIN) 613 #if defined(OS_WIN)
614 // Returns the name of the dll that contains cursors and other resources. 614 // Returns the name of the dll that contains cursors and other resources.
615 virtual const wchar_t* GetResourceDllName(); 615 virtual const wchar_t* GetResourceDllName();
616 616
617 // This is called on the PROCESS_LAUNCHER thread before the renderer process 617 // This is called on the PROCESS_LAUNCHER thread before the renderer process
618 // is launched. It gives the embedder a chance to add loosen the sandbox 618 // is launched. It gives the embedder a chance to add loosen the sandbox
(...skipping 14 matching lines...) Expand all
633 // Returns a special cookie store to use for a given render process, or NULL 633 // Returns a special cookie store to use for a given render process, or NULL
634 // if the default cookie store should be used 634 // if the default cookie store should be used
635 // This is called on the IO thread. 635 // This is called on the IO thread.
636 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( 636 virtual net::CookieStore* OverrideCookieStoreForRenderProcess(
637 int render_process_id_); 637 int render_process_id_);
638 }; 638 };
639 639
640 } // namespace content 640 } // namespace content
641 641
642 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 642 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host.h ('k') | content/public/common/content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698