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

Side by Side Diff: content/browser/plugin_data_remover_impl.h

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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
« no previous file with comments | « content/browser/mock_resource_context.cc ('k') | content/browser/plugin_data_remover_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PLUGIN_DATA_REMOVER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_PLUGIN_DATA_REMOVER_IMPL_H_
6 #define CONTENT_BROWSER_PLUGIN_DATA_REMOVER_IMPL_H_ 6 #define CONTENT_BROWSER_PLUGIN_DATA_REMOVER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "content/public/browser/plugin_data_remover.h" 13 #include "content/public/browser/plugin_data_remover.h"
14 14
15 class CONTENT_EXPORT PluginDataRemoverImpl : public content::PluginDataRemover { 15 class CONTENT_EXPORT PluginDataRemoverImpl : public content::PluginDataRemover {
16 public: 16 public:
17 explicit PluginDataRemoverImpl( 17 explicit PluginDataRemoverImpl(content::ResourceContext* resource_context);
18 const content::ResourceContext& resource_context);
19 virtual ~PluginDataRemoverImpl(); 18 virtual ~PluginDataRemoverImpl();
20 19
21 // content::PluginDataRemover implementation: 20 // content::PluginDataRemover implementation:
22 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) OVERRIDE; 21 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) OVERRIDE;
23 22
24 // The plug-in whose data should be removed (usually Flash) is specified via 23 // The plug-in whose data should be removed (usually Flash) is specified via
25 // its MIME type. This method sets a different MIME type in order to call a 24 // its MIME type. This method sets a different MIME type in order to call a
26 // different plug-in (for example in tests). 25 // different plug-in (for example in tests).
27 void set_mime_type(const std::string& mime_type) { mime_type_ = mime_type; } 26 void set_mime_type(const std::string& mime_type) { mime_type_ = mime_type; }
28 27
29 private: 28 private:
30 class Context; 29 class Context;
31 30
32 std::string mime_type_; 31 std::string mime_type_;
33 // The resource context for the profile. 32 // The resource context for the profile.
34 const content::ResourceContext& resource_context_; 33 content::ResourceContext* resource_context_;
35 34
36 // This allows this object to be deleted on the UI thread while it's still 35 // This allows this object to be deleted on the UI thread while it's still
37 // being used on the IO thread. 36 // being used on the IO thread.
38 scoped_refptr<Context> context_; 37 scoped_refptr<Context> context_;
39 38
40 DISALLOW_COPY_AND_ASSIGN(PluginDataRemoverImpl); 39 DISALLOW_COPY_AND_ASSIGN(PluginDataRemoverImpl);
41 }; 40 };
42 41
43 #endif // CONTENT_BROWSER_PLUGIN_DATA_REMOVER_IMPL_H_ 42 #endif // CONTENT_BROWSER_PLUGIN_DATA_REMOVER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/mock_resource_context.cc ('k') | content/browser/plugin_data_remover_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698