OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PEPPER_FILE_CHOOSER_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_CHOOSER_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_CHOOSER_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_CHOOSER_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "ppapi/host/host_message_context.h" | 16 #include "ppapi/host/host_message_context.h" |
17 #include "ppapi/host/resource_host.h" | 17 #include "ppapi/host/resource_host.h" |
18 #include "ppapi/proxy/resource_message_params.h" | 18 #include "ppapi/proxy/resource_message_params.h" |
19 | 19 |
20 namespace ppapi { | |
21 struct FileRefCreateInfo; | |
22 } | |
23 | |
24 namespace content { | 20 namespace content { |
25 | 21 |
26 class RendererPpapiHost; | 22 class RendererPpapiHost; |
27 class RenderViewImpl; | |
28 | 23 |
29 class CONTENT_EXPORT PepperFileChooserHost | 24 class CONTENT_EXPORT PepperFileChooserHost |
30 : public ppapi::host::ResourceHost, | 25 : public ppapi::host::ResourceHost, |
31 public base::SupportsWeakPtr<PepperFileChooserHost> { | 26 public base::SupportsWeakPtr<PepperFileChooserHost> { |
32 public: | 27 public: |
33 // Structure to store the information about chosen files. | 28 // Structure to store the information about chosen files. |
34 struct ChosenFileInfo { | 29 struct ChosenFileInfo { |
35 ChosenFileInfo(const std::string& path, const std::string& display_name); | 30 ChosenFileInfo(const std::string& path, const std::string& display_name); |
36 std::string path; | 31 std::string path; |
37 std::string display_name; // May be empty. | 32 std::string display_name; // May be empty. |
(...skipping 30 matching lines...) Expand all Loading... |
68 CompletionHandler* handler_; | 63 CompletionHandler* handler_; |
69 | 64 |
70 base::WeakPtrFactory<PepperFileChooserHost> weak_factory_; | 65 base::WeakPtrFactory<PepperFileChooserHost> weak_factory_; |
71 | 66 |
72 DISALLOW_COPY_AND_ASSIGN(PepperFileChooserHost); | 67 DISALLOW_COPY_AND_ASSIGN(PepperFileChooserHost); |
73 }; | 68 }; |
74 | 69 |
75 } // namespace content | 70 } // namespace content |
76 | 71 |
77 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_CHOOSER_HOST_H_ | 72 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_CHOOSER_HOST_H_ |
OLD | NEW |