| 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 // This class pulls data from a web resource (such as a JSON feed) which | 5 // This class pulls data from a web resource (such as a JSON feed) which |
| 6 // has been stored in the user's preferences file. Used mainly | 6 // has been stored in the user's preferences file. Used mainly |
| 7 // by the suggestions and tips area of the new tab page. | 7 // by the suggestions and tips area of the new tab page. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_WEBUI_TIPS_HANDLER_H_ | 9 #ifndef CHROME_BROWSER_WEBUI_TIPS_HANDLER_H_ |
| 10 #define CHROME_BROWSER_WEBUI_TIPS_HANDLER_H_ | 10 #define CHROME_BROWSER_WEBUI_TIPS_HANDLER_H_ |
| 11 #pragma once | 11 #pragma once |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "chrome/browser/webui/web_ui.h" | 15 #include "content/browser/webui/web_ui.h" |
| 16 | 16 |
| 17 class DictionaryValue; | 17 class DictionaryValue; |
| 18 class ListValue; | 18 class ListValue; |
| 19 class PrefService; | 19 class PrefService; |
| 20 | 20 |
| 21 class TipsHandler : public WebUIMessageHandler { | 21 class TipsHandler : public WebUIMessageHandler { |
| 22 public: | 22 public: |
| 23 TipsHandler() : tips_cache_(NULL) {} | 23 TipsHandler() : tips_cache_(NULL) {} |
| 24 virtual ~TipsHandler() {} | 24 virtual ~TipsHandler() {} |
| 25 | 25 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 47 WebUI* web_ui_; | 47 WebUI* web_ui_; |
| 48 | 48 |
| 49 // Filled with data from cache in preferences. | 49 // Filled with data from cache in preferences. |
| 50 DictionaryValue* tips_cache_; | 50 DictionaryValue* tips_cache_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(TipsHandler); | 52 DISALLOW_COPY_AND_ASSIGN(TipsHandler); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 #endif // CHROME_BROWSER_WEBUI_TIPS_HANDLER_H_ | 55 #endif // CHROME_BROWSER_WEBUI_TIPS_HANDLER_H_ |
| 56 | 56 |
| OLD | NEW |