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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Sets error_ to an error string if the given id string can't be parsed 77 // Sets error_ to an error string if the given id string can't be parsed
78 // as an int64. In case of error, doesn't change id and returns false. 78 // as an int64. In case of error, doesn't change id and returns false.
79 bool GetBookmarkIdAsInt64(const std::string& id_string, int64* id); 79 bool GetBookmarkIdAsInt64(const std::string& id_string, int64* id);
80 80
81 // Helper that checks if bookmark editing is enabled. If it's not, this sets 81 // Helper that checks if bookmark editing is enabled. If it's not, this sets
82 // error_ to the appropriate error string. 82 // error_ to the appropriate error string.
83 bool EditBookmarksEnabled(); 83 bool EditBookmarksEnabled();
84 84
85 private: 85 private:
86 // NotificationObserver: 86 // NotificationObserver:
87 virtual void Observe(NotificationType type, 87 virtual void Observe(int type,
88 const NotificationSource& source, 88 const NotificationSource& source,
89 const NotificationDetails& details) OVERRIDE; 89 const NotificationDetails& details) OVERRIDE;
90 90
91 NotificationRegistrar registrar_; 91 NotificationRegistrar registrar_;
92 }; 92 };
93 93
94 class GetBookmarksFunction : public BookmarksFunction { 94 class GetBookmarksFunction : public BookmarksFunction {
95 public: 95 public:
96 virtual bool RunImpl() OVERRIDE; 96 virtual bool RunImpl() OVERRIDE;
97 97
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // BookmarkManagerIOFunction: 231 // BookmarkManagerIOFunction:
232 virtual bool RunImpl() OVERRIDE; 232 virtual bool RunImpl() OVERRIDE;
233 virtual void FileSelected(const FilePath& path, int index, void* params) 233 virtual void FileSelected(const FilePath& path, int index, void* params)
234 OVERRIDE; 234 OVERRIDE;
235 235
236 private: 236 private:
237 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export"); 237 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export");
238 }; 238 };
239 239
240 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_ 240 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_app_api.cc ('k') | chrome/browser/extensions/extension_bookmarks_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698