OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_SHELL_SHELL_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_SHELL_SHELL_MESSAGE_FILTER_H_ |
6 #define CONTENT_SHELL_SHELL_MESSAGE_FILTER_H_ | 6 #define CONTENT_SHELL_SHELL_MESSAGE_FILTER_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/file_path.h" | 12 #include "base/file_path.h" |
13 #include "content/public/browser/browser_message_filter.h" | 13 #include "content/public/browser/browser_message_filter.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class ShellMessageFilter : public BrowserMessageFilter { | 17 class ShellMessageFilter : public BrowserMessageFilter { |
18 public: | 18 public: |
19 explicit ShellMessageFilter(int render_process_id); | 19 explicit ShellMessageFilter(int render_process_id); |
20 | 20 |
21 private: | 21 private: |
22 virtual ~ShellMessageFilter(); | 22 virtual ~ShellMessageFilter(); |
23 | 23 |
24 // BrowserMessageFilter implementation. | 24 // BrowserMessageFilter implementation. |
25 virtual bool OnMessageReceived(const IPC::Message& message, | 25 virtual bool OnMessageReceived(const IPC::Message& message, |
26 bool* message_was_ok) OVERRIDE; | 26 bool* message_was_ok) OVERRIDE; |
27 | 27 |
28 void OnReadFileToString(const FilePath& local_file, std::string* contents); | 28 void OnReadFileToString(const base::FilePath& local_file, |
| 29 std::string* contents); |
29 void OnRegisterIsolatedFileSystem( | 30 void OnRegisterIsolatedFileSystem( |
30 const std::vector<FilePath>& absolute_filenames, | 31 const std::vector<base::FilePath>& absolute_filenames, |
31 std::string* filesystem_id); | 32 std::string* filesystem_id); |
32 | 33 |
33 int render_process_id_; | 34 int render_process_id_; |
34 | 35 |
35 DISALLOW_COPY_AND_ASSIGN(ShellMessageFilter); | 36 DISALLOW_COPY_AND_ASSIGN(ShellMessageFilter); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace content | 39 } // namespace content |
39 | 40 |
40 #endif // CONTENT_SHELL_SHELL_MESSAGE_FILTER_H_ | 41 #endif // CONTENT_SHELL_SHELL_MESSAGE_FILTER_H_ |
OLD | NEW |