| OLD | NEW |
| 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_UI_WEBUI_NTP_BOOKMARKS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_BOOKMARKS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_NTP_BOOKMARKS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_BOOKMARKS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/bookmarks/bookmark_model_observer.h" | 9 #include "chrome/browser/bookmarks/bookmark_model_observer.h" |
| 10 #include "content/browser/webui/web_ui.h" | 10 #include "content/browser/webui/web_ui.h" |
| 11 | 11 |
| 12 class PrefService; | 12 class PrefService; |
| 13 class Profile; | |
| 14 | 13 |
| 15 // The handler for Javascript messages related to the "bookmarks" view. | 14 // The handler for Javascript messages related to the "bookmarks" view. |
| 16 class BookmarksHandler : public WebUIMessageHandler, | 15 class BookmarksHandler : public WebUIMessageHandler, |
| 17 public BookmarkModelObserver { | 16 public BookmarkModelObserver { |
| 18 public: | 17 public: |
| 19 explicit BookmarksHandler(); | 18 explicit BookmarksHandler(); |
| 20 virtual ~BookmarksHandler(); | 19 virtual ~BookmarksHandler(); |
| 21 | 20 |
| 22 // WebUIMessageHandler implementation. | 21 // WebUIMessageHandler implementation. |
| 23 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE; | 22 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // True if the DOM layer is ready. | 85 // True if the DOM layer is ready. |
| 87 bool dom_ready_; | 86 bool dom_ready_; |
| 88 | 87 |
| 89 // True when we are handling a chrome.send call. | 88 // True when we are handling a chrome.send call. |
| 90 bool from_current_page_; | 89 bool from_current_page_; |
| 91 | 90 |
| 92 DISALLOW_COPY_AND_ASSIGN(BookmarksHandler); | 91 DISALLOW_COPY_AND_ASSIGN(BookmarksHandler); |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 #endif // CHROME_BROWSER_UI_WEBUI_NTP_BOOKMARKS_HANDLER_H_ | 94 #endif // CHROME_BROWSER_UI_WEBUI_NTP_BOOKMARKS_HANDLER_H_ |
| OLD | NEW |