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

Side by Side Diff: components/nacl/common/nacl_browser_delegate.h

Issue 55463002: Remove PNaCl's RequestFirstInstall, use resource throttle instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reorder functions Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ 5 #ifndef COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_
6 #define COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ 6 #define COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // full pathname of a file in the local filesystem. |file_path| should not be 61 // full pathname of a file in the local filesystem. |file_path| should not be
62 // changed on failure. This mapping should be a best effort, for example, 62 // changed on failure. This mapping should be a best effort, for example,
63 // "chrome-extension:" could be mapped to the location of unpacked 63 // "chrome-extension:" could be mapped to the location of unpacked
64 // extensions. If this method is called in a blocking thread you should set 64 // extensions. If this method is called in a blocking thread you should set
65 // |use_blocking_api| to true, so calling blocking file API is allowed 65 // |use_blocking_api| to true, so calling blocking file API is allowed
66 // otherwise non blocking API will be used (which only handles a subset of the 66 // otherwise non blocking API will be used (which only handles a subset of the
67 // urls checking only the url scheme against kExtensionScheme). 67 // urls checking only the url scheme against kExtensionScheme).
68 virtual bool MapUrlToLocalFilePath(const GURL& url, 68 virtual bool MapUrlToLocalFilePath(const GURL& url,
69 bool use_blocking_api, 69 bool use_blocking_api,
70 base::FilePath* file_path) = 0; 70 base::FilePath* file_path) = 0;
71 // Install PNaCl if this operation is supported. On success, the |installed|
72 // callback should be called with true, and on failure (or not supported),
73 // the |installed| callback should be called with false.
74 // TODO(jvoung): Add the progress callback as well.
75 virtual void TryInstallPnacl(
76 const base::Callback<void(bool)>& installed) = 0;
77
78 // Set match patterns which will be checked before enabling debug stub. 71 // Set match patterns which will be checked before enabling debug stub.
79 virtual void SetDebugPatterns(std::string debug_patterns) = 0; 72 virtual void SetDebugPatterns(std::string debug_patterns) = 0;
80 73
81 // Returns whether NaCl application with this manifest URL should be debugged. 74 // Returns whether NaCl application with this manifest URL should be debugged.
82 virtual bool URLMatchesDebugPatterns(const GURL& manifest_url) = 0; 75 virtual bool URLMatchesDebugPatterns(const GURL& manifest_url) = 0;
83 }; 76 };
84 77
85 #endif // COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ 78 #endif // COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/ppb_nacl_private_impl.cc ('k') | components/nacl/common/nacl_host_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698