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

Side by Side Diff: ppapi/cpp/private/ext_crx_file_system_private.cc

Issue 14188019: CRX FileSystem Pepper private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « ppapi/cpp/private/ext_crx_file_system_private.h ('k') | ppapi/examples/crxfs/crxfs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ppapi/cpp/private/ext_crx_file_system_private.h"
6
7 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h"
8 #include "ppapi/cpp/module_impl.h"
9
10 namespace pp {
11
12 namespace {
13
14 template <> const char* interface_name<PPB_Ext_CrxFileSystem_Private_0_1>() {
15 return PPB_EXT_CRXFILESYSTEM_PRIVATE_INTERFACE_0_1;
16 }
17
18 } // namespace
19
20 ExtCrxFileSystemPrivate::ExtCrxFileSystemPrivate() {
21 }
22
23 ExtCrxFileSystemPrivate::ExtCrxFileSystemPrivate(
24 const InstanceHandle& instance) : instance_(instance.pp_instance()) {
25 }
26
27 ExtCrxFileSystemPrivate::~ExtCrxFileSystemPrivate() {
28 }
29
30 int32_t ExtCrxFileSystemPrivate::Open(
31 const CompletionCallbackWithOutput<pp::FileSystem>& cc) {
32 if (!has_interface<PPB_Ext_CrxFileSystem_Private_0_1>())
33 return cc.MayForce(PP_ERROR_NOINTERFACE);
34 return get_interface<PPB_Ext_CrxFileSystem_Private_0_1>()->
35 Open(instance_, cc.output(), cc.pp_completion_callback());
36 }
37
38 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/private/ext_crx_file_system_private.h ('k') | ppapi/examples/crxfs/crxfs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698