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

Side by Side Diff: content/browser/renderer_host/pepper_file_message_filter.h

Issue 9015021: Remove DeleteTask and convert remaining users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last Linux gotchas (upload attempt #2) Created 8 years, 11 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_PEPPER_FILE_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_FILE_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_FILE_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_FILE_MESSAGE_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/message_loop_helpers.h"
14 #include "base/process.h" 15 #include "base/process.h"
15 #include "base/task.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "content/public/browser/browser_message_filter.h" 17 #include "content/public/browser/browser_message_filter.h"
18 #include "ipc/ipc_platform_file.h" 18 #include "ipc/ipc_platform_file.h"
19 #include "webkit/plugins/ppapi/dir_contents.h" 19 #include "webkit/plugins/ppapi/dir_contents.h"
20 20
21 namespace content { 21 namespace content {
22 class BrowserContext; 22 class BrowserContext;
23 } 23 }
24 24
25 namespace webkit { 25 namespace webkit {
(...skipping 13 matching lines...) Expand all
39 const IPC::Message& message, 39 const IPC::Message& message,
40 content::BrowserThread::ID* thread) OVERRIDE; 40 content::BrowserThread::ID* thread) OVERRIDE;
41 virtual bool OnMessageReceived(const IPC::Message& message, 41 virtual bool OnMessageReceived(const IPC::Message& message,
42 bool* message_was_ok) OVERRIDE; 42 bool* message_was_ok) OVERRIDE;
43 virtual void OnDestruct() const OVERRIDE; 43 virtual void OnDestruct() const OVERRIDE;
44 44
45 int child_id() const { return child_id_; } 45 int child_id() const { return child_id_; }
46 46
47 private: 47 private:
48 friend class content::BrowserThread; 48 friend class content::BrowserThread;
49 friend class DeleteTask<PepperFileMessageFilter>; 49 friend class base::DeleteHelper<PepperFileMessageFilter>;
50 virtual ~PepperFileMessageFilter(); 50 virtual ~PepperFileMessageFilter();
51 51
52 // Called on the FILE thread: 52 // Called on the FILE thread:
53 void OnOpenFile(const webkit::ppapi::PepperFilePath& path, 53 void OnOpenFile(const webkit::ppapi::PepperFilePath& path,
54 int flags, 54 int flags,
55 base::PlatformFileError* error, 55 base::PlatformFileError* error,
56 IPC::PlatformFileForTransit* file); 56 IPC::PlatformFileForTransit* file);
57 void OnRenameFile(const webkit::ppapi::PepperFilePath& from_path, 57 void OnRenameFile(const webkit::ppapi::PepperFilePath& from_path,
58 const webkit::ppapi::PepperFilePath& to_path, 58 const webkit::ppapi::PepperFilePath& to_path,
59 base::PlatformFileError* error); 59 base::PlatformFileError* error);
(...skipping 21 matching lines...) Expand all
81 // owned by this class. 81 // owned by this class.
82 IPC::Channel* channel_; 82 IPC::Channel* channel_;
83 83
84 // The base path for the pepper data. 84 // The base path for the pepper data.
85 FilePath pepper_path_; 85 FilePath pepper_path_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(PepperFileMessageFilter); 87 DISALLOW_COPY_AND_ASSIGN(PepperFileMessageFilter);
88 }; 88 };
89 89
90 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_FILE_MESSAGE_FILTER_H_ 90 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_FILE_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host.h ('k') | content/browser/renderer_host/render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698