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

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_error_handler.h

Issue 150663013: Integrate ErrorConsole with Apps Dev Tool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dan's II Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 void GetLocalizedValues(content::WebUIDataSource* source); 36 void GetLocalizedValues(content::WebUIDataSource* source);
37 37
38 // WebUIMessageHandler implementation. 38 // WebUIMessageHandler implementation.
39 virtual void RegisterMessages() OVERRIDE; 39 virtual void RegisterMessages() OVERRIDE;
40 40
41 private: 41 private:
42 friend class ManifestHighlightUnitTest; 42 friend class ManifestHighlightUnitTest;
43 43
44 // Handle the "requestFileSource" call. 44 // Handle the "requestFileSource" call.
45 void HandleRequestFileSource(const base::ListValue* args); 45 void HandleRequestFileSource(const base::ListValue* args);
46
47 // Called when |error_ui_util::HandleRequestFileSource| finishes.
48 void OnFileSourceHandled(const base::DictionaryValue& source);
49
46 // Handle the "openDevTools" call. 50 // Handle the "openDevTools" call.
47 void HandleOpenDevTools(const base::ListValue* args); 51 void HandleOpenDevTools(const base::ListValue* args);
48 52
49 // Populate the results for a manifest file's content in response to the 53 // Populate the results for a manifest file's content in response to the
50 // "requestFileSource" call. Highlight the part of the manifest which 54 // "requestFileSource" call. Highlight the part of the manifest which
51 // corresponds to the given |key| and |specific| locations. Caller owns 55 // corresponds to the given |key| and |specific| locations. Caller owns
52 // |dict|. 56 // |dict|.
53 void GetManifestFileCallback(base::DictionaryValue* dict, 57 void GetManifestFileCallback(base::DictionaryValue* dict,
54 const std::string& key, 58 const std::string& key,
55 const std::string& specific, 59 const std::string& specific,
56 const std::string& contents); 60 const std::string& contents);
57 61
58 // Populate the results for a source file's content in response to the 62 // Populate the results for a source file's content in response to the
59 // "requestFileSource" call. Highlight the part of the source which 63 // "requestFileSource" call. Highlight the part of the source which
60 // corresponds to the given |line_number|. 64 // corresponds to the given |line_number|.
61 void GetSourceFileCallback(base::DictionaryValue* results, 65 void GetSourceFileCallback(base::DictionaryValue* results,
62 int line_number, 66 int line_number,
63 const std::string& contents); 67 const std::string& contents);
64 68
65 // The profile with which this Handler is associated. 69 // The profile with which this Handler is associated.
66 Profile* profile_; 70 Profile* profile_;
67 71
68 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorHandler); 72 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorHandler);
69 }; 73 };
70 74
71 } // namespace extensions 75 } // namespace extensions
72 76
73 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_ 77 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698