OLD | NEW |
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 EXTENSIONS_SHELL_BROWSER_SHELL_NACL_BROWSER_DELEGATE_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NACL_BROWSER_DELEGATE_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NACL_BROWSER_DELEGATE_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NACL_BROWSER_DELEGATE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/nacl/browser/nacl_browser_delegate.h" | 10 #include "components/nacl/browser/nacl_browser_delegate.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 bool GetPluginDirectory(base::FilePath* plugin_dir) override; | 32 bool GetPluginDirectory(base::FilePath* plugin_dir) override; |
33 bool GetPnaclDirectory(base::FilePath* pnacl_dir) override; | 33 bool GetPnaclDirectory(base::FilePath* pnacl_dir) override; |
34 bool GetUserDirectory(base::FilePath* user_dir) override; | 34 bool GetUserDirectory(base::FilePath* user_dir) override; |
35 std::string GetVersionString() const override; | 35 std::string GetVersionString() const override; |
36 ppapi::host::HostFactory* CreatePpapiHostFactory( | 36 ppapi::host::HostFactory* CreatePpapiHostFactory( |
37 content::BrowserPpapiHost* ppapi_host) override; | 37 content::BrowserPpapiHost* ppapi_host) override; |
38 bool MapUrlToLocalFilePath(const GURL& url, | 38 bool MapUrlToLocalFilePath(const GURL& url, |
39 bool is_blocking, | 39 bool is_blocking, |
40 const base::FilePath& profile_directory, | 40 const base::FilePath& profile_directory, |
41 base::FilePath* file_path) override; | 41 base::FilePath* file_path) override; |
42 void SetDebugPatterns(std::string debug_patterns) override; | 42 void SetDebugPatterns(const std::string& debug_patterns) override; |
43 bool URLMatchesDebugPatterns(const GURL& manifest_url) override; | 43 bool URLMatchesDebugPatterns(const GURL& manifest_url) override; |
44 content::BrowserPpapiHost::OnKeepaliveCallback GetOnKeepaliveCallback() | 44 content::BrowserPpapiHost::OnKeepaliveCallback GetOnKeepaliveCallback() |
45 override; | 45 override; |
46 bool IsNonSfiModeAllowed(const base::FilePath& profile_directory, | 46 bool IsNonSfiModeAllowed(const base::FilePath& profile_directory, |
47 const GURL& manifest_url) override; | 47 const GURL& manifest_url) override; |
48 | 48 |
49 private: | 49 private: |
50 content::BrowserContext* browser_context_; // Not owned. | 50 content::BrowserContext* browser_context_; // Not owned. |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(ShellNaClBrowserDelegate); | 52 DISALLOW_COPY_AND_ASSIGN(ShellNaClBrowserDelegate); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace extensions | 55 } // namespace extensions |
56 | 56 |
57 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NACL_BROWSER_DELEGATE_H_ | 57 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NACL_BROWSER_DELEGATE_H_ |
OLD | NEW |