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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/request_value.h

Issue 257493004: [fsp] Refactor handling operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_
7
8 #include <string>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/common/extensions/api/file_system_provider_internal.h"
12
13 namespace chromeos {
14 namespace file_system_provider {
15
16 // Holds a parsed value returned by a providing extension. Each accessor can
17 // return NULL in case the requested value type is not available. It is used
18 // to pass values of success callbacks.
19 class RequestValue {
20 public:
21 // Creates an empty value. Use static methods to create a value holding a
22 // proper content.
23 RequestValue();
24
25 virtual ~RequestValue();
26
27 static RequestValue* CreateForUnmountSuccess(
kinaba 2014/04/25 06:35:06 Returning scoped_ptr<RequestValue> may be slightly
mtomasz 2014/04/28 00:42:47 Done.
28 scoped_ptr<extensions::api::file_system_provider_internal::
29 UnmountRequestedSuccess::Params> params);
30
31 static RequestValue* CreateForTesting(const std::string& params);
kinaba 2014/04/25 06:35:06 ditto
mtomasz 2014/04/28 00:42:47 Done.
32
33 std::string* get_testing_params() { return testing_params_.get(); }
34
35 extensions::api::file_system_provider_internal::UnmountRequestedSuccess::
36 Params*
37 get_unmount_success_params() {
38 return unmount_success_params_.get();
39 }
40
41 private:
42 scoped_ptr<extensions::api::file_system_provider_internal::
43 UnmountRequestedSuccess::Params> unmount_success_params_;
44 scoped_ptr<std::string> testing_params_;
45
46 DISALLOW_COPY_AND_ASSIGN(RequestValue);
47 };
48
49 } // namespace file_system_provider
50 } // namespace chromeos
51
52 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_VALUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698