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

Side by Side Diff: headless/lib/browser/headless_content_browser_client.h

Issue 2712093002: Enable building headless_shell in MAC. This is an initial implementation with a hidden window, rath… (Closed)
Patch Set: revet chrome/BUILD.gn Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 9
10 namespace headless { 10 namespace headless {
(...skipping 10 matching lines...) Expand all
21 const content::MainFunctionParams&) override; 21 const content::MainFunctionParams&) override;
22 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, 22 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host,
23 content::WebPreferences* prefs) override; 23 content::WebPreferences* prefs) override;
24 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; 24 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override;
25 std::unique_ptr<base::Value> GetServiceManifestOverlay( 25 std::unique_ptr<base::Value> GetServiceManifestOverlay(
26 base::StringPiece name) override; 26 base::StringPiece name) override;
27 void GetQuotaSettings( 27 void GetQuotaSettings(
28 content::BrowserContext* context, 28 content::BrowserContext* context,
29 content::StoragePartition* partition, 29 content::StoragePartition* partition,
30 const storage::OptionalQuotaSettingsCallback& callback) override; 30 const storage::OptionalQuotaSettingsCallback& callback) override;
31 #if defined(OS_POSIX) && !defined(OS_MACOSX)
31 void GetAdditionalMappedFilesForChildProcess( 32 void GetAdditionalMappedFilesForChildProcess(
32 const base::CommandLine& command_line, 33 const base::CommandLine& command_line,
33 int child_process_id, 34 int child_process_id,
34 content::FileDescriptorInfo* mappings) override; 35 content::FileDescriptorInfo* mappings) override;
36 #endif
35 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, 37 void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
36 int child_process_id) override; 38 int child_process_id) override;
37 39
38 private: 40 private:
39 HeadlessBrowserImpl* browser_; // Not owned. 41 HeadlessBrowserImpl* browser_; // Not owned.
40 42
41 DISALLOW_COPY_AND_ASSIGN(HeadlessContentBrowserClient); 43 DISALLOW_COPY_AND_ASSIGN(HeadlessContentBrowserClient);
42 }; 44 };
43 45
44 } // namespace headless 46 } // namespace headless
45 47
46 #endif // HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 48 #endif // HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_browser_impl_mac.mm ('k') | headless/lib/browser/headless_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698