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

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

Issue 19863003: PNaCl on-demand installs: Make a separate async IPC to check if PNaCl is installed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: take out progress IPC for now Created 7 years, 4 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 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual bool GetUserDirectory(base::FilePath* user_dir) = 0; 51 virtual bool GetUserDirectory(base::FilePath* user_dir) = 0;
52 // Returns the version as a string. This string is used to invalidate 52 // Returns the version as a string. This string is used to invalidate
53 // validator cache entries when Chromium is upgraded 53 // validator cache entries when Chromium is upgraded
54 virtual std::string GetVersionString() const = 0; 54 virtual std::string GetVersionString() const = 0;
55 // Returns a HostFactory that hides the details of its embedder. 55 // Returns a HostFactory that hides the details of its embedder.
56 virtual ppapi::host::HostFactory* CreatePpapiHostFactory( 56 virtual ppapi::host::HostFactory* CreatePpapiHostFactory(
57 content::BrowserPpapiHost* ppapi_host) = 0; 57 content::BrowserPpapiHost* ppapi_host) = 0;
58 // Install PNaCl if this operation is supported. On success, the |installed| 58 // Install PNaCl if this operation is supported. On success, the |installed|
59 // callback should be called with true, and on failure (or not supported), 59 // callback should be called with true, and on failure (or not supported),
60 // the |installed| callback should be called with false. 60 // the |installed| callback should be called with false.
61 // TODO(jvoung): Add the progress callback as well.
61 virtual void TryInstallPnacl( 62 virtual void TryInstallPnacl(
62 const base::Callback<void(bool)>& installed) = 0; 63 const base::Callback<void(bool)>& installed) = 0;
63 }; 64 };
64 65
65 #endif // COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_ 66 #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