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

Side by Side Diff: chrome/browser/extensions/extension_omnibox_api.h

Issue 10071035: RefCounted types should not have public destructors, chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 8 years, 7 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) 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_OMNIBOX_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_OMNIBOX_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_OMNIBOX_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_OMNIBOX_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // sent at most once in a give input session, after any OnInputChanged events. 43 // sent at most once in a give input session, after any OnInputChanged events.
44 static void OnInputCancelled( 44 static void OnInputCancelled(
45 Profile* profile, const std::string& extension_id); 45 Profile* profile, const std::string& extension_id);
46 46
47 private: 47 private:
48 DISALLOW_COPY_AND_ASSIGN(ExtensionOmniboxEventRouter); 48 DISALLOW_COPY_AND_ASSIGN(ExtensionOmniboxEventRouter);
49 }; 49 };
50 50
51 class OmniboxSendSuggestionsFunction : public SyncExtensionFunction { 51 class OmniboxSendSuggestionsFunction : public SyncExtensionFunction {
52 public: 52 public:
53 DECLARE_EXTENSION_FUNCTION_NAME("omnibox.sendSuggestions");
54
55 protected:
56 virtual ~OmniboxSendSuggestionsFunction() {}
57
58 // ExtensionFunction:
53 virtual bool RunImpl() OVERRIDE; 59 virtual bool RunImpl() OVERRIDE;
54 DECLARE_EXTENSION_FUNCTION_NAME("omnibox.sendSuggestions");
55 }; 60 };
56 61
57 class OmniboxSetDefaultSuggestionFunction : public SyncExtensionFunction { 62 class OmniboxSetDefaultSuggestionFunction : public SyncExtensionFunction {
58 public: 63 public:
64 DECLARE_EXTENSION_FUNCTION_NAME("omnibox.setDefaultSuggestion");
65
66 protected:
67 virtual ~OmniboxSetDefaultSuggestionFunction() {}
68
69 // ExtensionFunction:
59 virtual bool RunImpl() OVERRIDE; 70 virtual bool RunImpl() OVERRIDE;
60 DECLARE_EXTENSION_FUNCTION_NAME("omnibox.setDefaultSuggestion");
61 }; 71 };
62 72
63 struct ExtensionOmniboxSuggestion { 73 struct ExtensionOmniboxSuggestion {
64 ExtensionOmniboxSuggestion(); 74 ExtensionOmniboxSuggestion();
65 ~ExtensionOmniboxSuggestion(); 75 ~ExtensionOmniboxSuggestion();
66 76
67 // Converts a list of style ranges from the extension into the format expected 77 // Converts a list of style ranges from the extension into the format expected
68 // by the autocomplete system. 78 // by the autocomplete system.
69 bool ReadStylesFromValue(const base::ListValue& value); 79 bool ReadStylesFromValue(const base::ListValue& value);
70 80
(...skipping 28 matching lines...) Expand all
99 AutocompleteMatch* match); 109 AutocompleteMatch* match);
100 110
101 // Launch an Extension App from |match| details provided by the Omnibox. If the 111 // Launch an Extension App from |match| details provided by the Omnibox. If the
102 // application wants to launch as a window or panel, |disposition| is ignored; 112 // application wants to launch as a window or panel, |disposition| is ignored;
103 // otherwise it's used to determine in which tab we'll launch the application. 113 // otherwise it's used to determine in which tab we'll launch the application.
104 void LaunchAppFromOmnibox(const AutocompleteMatch& match, 114 void LaunchAppFromOmnibox(const AutocompleteMatch& match,
105 Profile* profile, 115 Profile* profile,
106 WindowOpenDisposition disposition); 116 WindowOpenDisposition disposition);
107 117
108 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_OMNIBOX_API_H_ 118 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_OMNIBOX_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_module.h ('k') | chrome/browser/extensions/extension_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698