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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "ppapi/host/host_message_context.h" | 14 #include "ppapi/host/host_message_context.h" |
15 #include "ppapi/host/resource_host.h" | 15 #include "ppapi/host/resource_host.h" |
16 #include "ppapi/proxy/resource_message_params.h" | 16 #include "ppapi/proxy/resource_message_params.h" |
17 | 17 |
18 class RenderViewImpl; | |
19 | |
20 namespace content { | 18 namespace content { |
21 | 19 |
22 class RendererPpapiHost; | 20 class RendererPpapiHost; |
| 21 class RenderViewImpl; |
23 | 22 |
24 class CONTENT_EXPORT PepperFileChooserHost | 23 class CONTENT_EXPORT PepperFileChooserHost |
25 : public ppapi::host::ResourceHost, | 24 : public ppapi::host::ResourceHost, |
26 public base::SupportsWeakPtr<PepperFileChooserHost> { | 25 public base::SupportsWeakPtr<PepperFileChooserHost> { |
27 public: | 26 public: |
28 // Structure to store the information about chosen files. | 27 // Structure to store the information about chosen files. |
29 struct ChosenFileInfo { | 28 struct ChosenFileInfo { |
30 ChosenFileInfo(const std::string& path, const std::string& display_name); | 29 ChosenFileInfo(const std::string& path, const std::string& display_name); |
31 std::string path; | 30 std::string path; |
32 std::string display_name; // May be empty. | 31 std::string display_name; // May be empty. |
(...skipping 24 matching lines...) Expand all Loading... |
57 | 56 |
58 ppapi::host::ReplyMessageContext reply_context_; | 57 ppapi::host::ReplyMessageContext reply_context_; |
59 CompletionHandler* handler_; | 58 CompletionHandler* handler_; |
60 | 59 |
61 DISALLOW_COPY_AND_ASSIGN(PepperFileChooserHost); | 60 DISALLOW_COPY_AND_ASSIGN(PepperFileChooserHost); |
62 }; | 61 }; |
63 | 62 |
64 } // namespace ppapi | 63 } // namespace ppapi |
65 | 64 |
66 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_CHOOSER_HOST_H_ | 65 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_CHOOSER_HOST_H_ |
OLD | NEW |