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

Side by Side Diff: chrome/browser/ui/webui/snippets_internals_message_handler.h

Issue 1927993002: Allow dumping raw json fetched from the server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some fixes Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void SendInitialData(); 44 void SendInitialData();
45 void SendSnippets(); 45 void SendSnippets();
46 void SendDiscardedSnippets(); 46 void SendDiscardedSnippets();
47 void SendHosts(); 47 void SendHosts();
48 void SendJson(const std::string& json); 48 void SendJson(const std::string& json);
49 void SendBoolean(const std::string& name, bool value); 49 void SendBoolean(const std::string& name, bool value);
50 void SendString(const std::string& name, const std::string& value); 50 void SendString(const std::string& name, const std::string& value);
51 51
52 ScopedObserver<ntp_snippets::NTPSnippetsService, 52 ScopedObserver<ntp_snippets::NTPSnippetsService,
53 ntp_snippets::NTPSnippetsServiceObserver> observer_; 53 ntp_snippets::NTPSnippetsServiceObserver> observer_;
54
55 // Tracks whether we can already send messages to the page.
54 bool dom_loaded_; 56 bool dom_loaded_;
57 // Should the current fetching request be dumped to a file as well?
Bernhard Bauer 2016/04/29 12:02:22 Nit: empty line before comments.
jkrcal 2016/04/29 13:11:48 Deleted the member :)
58 bool dump_current_fetch_;
59
55 ntp_snippets::NTPSnippetsService* ntp_snippets_service_; 60 ntp_snippets::NTPSnippetsService* ntp_snippets_service_;
56 61
57 DISALLOW_COPY_AND_ASSIGN(SnippetsInternalsMessageHandler); 62 DISALLOW_COPY_AND_ASSIGN(SnippetsInternalsMessageHandler);
58 }; 63 };
59 64
60 #endif // CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ 65 #endif // CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698