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

Side by Side Diff: chrome/browser/extensions/api/downloads_internal/downloads_internal_api.h

Issue 11574006: Implement chrome.downloads.onDeterminingFilename() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r176065 Created 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_INTERNAL_DOWNLOADS_INTERNAL_API_ H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_INTERNAL_DOWNLOADS_INTERNAL_API_ H_
7
8 #include "chrome/browser/extensions/extension_function.h"
9
10 class DownloadsInternalAddFilenameDeterminerFunction
11 : public AsyncExtensionFunction {
vabr (Chromium) 2013/01/11 12:43:40 nit: I would guess +2 more spaces here and on line
benjhayden 2013/01/11 21:21:27 Done.
12 public:
13 DECLARE_EXTENSION_FUNCTION_NAME("downloadsInternal.addFilenameDeterminer");
14 DownloadsInternalAddFilenameDeterminerFunction();
15 virtual bool RunImpl() OVERRIDE;
16
17 protected:
18 virtual ~DownloadsInternalAddFilenameDeterminerFunction();
19
20 private:
21 DISALLOW_COPY_AND_ASSIGN(DownloadsInternalAddFilenameDeterminerFunction);
22 };
23
24 class DownloadsInternalRemoveFilenameDeterminerFunction
25 : public AsyncExtensionFunction {
26 public:
27 DECLARE_EXTENSION_FUNCTION_NAME("downloadsInternal.removeFilenameDeterminer");
28 DownloadsInternalRemoveFilenameDeterminerFunction();
29 virtual bool RunImpl() OVERRIDE;
30
31 protected:
32 virtual ~DownloadsInternalRemoveFilenameDeterminerFunction();
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(DownloadsInternalRemoveFilenameDeterminerFunction);
36 };
37
38 class DownloadsInternalDetermineFilenameFunction
39 : public AsyncExtensionFunction {
40 public:
41 DECLARE_EXTENSION_FUNCTION_NAME("downloadsInternal.determineFilename");
42 DownloadsInternalDetermineFilenameFunction();
43 virtual bool RunImpl() OVERRIDE;
44
45 protected:
46 virtual ~DownloadsInternalDetermineFilenameFunction();
47
48 private:
49 DISALLOW_COPY_AND_ASSIGN(DownloadsInternalDetermineFilenameFunction);
50 };
51
52 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_INTERNAL_DOWNLOADS_INTERNAL_A PI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698