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

Side by Side Diff: chrome/browser/chromeos/app_mode/kiosk_app_data.h

Issue 23717031: Additional error logs to track webstore response failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Starts to fetch data from web store. 93 // Starts to fetch data from web store.
94 void StartFetch(); 94 void StartFetch();
95 95
96 // extensions::WebstoreDataFetcherDelegate overrides: 96 // extensions::WebstoreDataFetcherDelegate overrides:
97 virtual void OnWebstoreRequestFailure() OVERRIDE; 97 virtual void OnWebstoreRequestFailure() OVERRIDE;
98 virtual void OnWebstoreResponseParseSuccess( 98 virtual void OnWebstoreResponseParseSuccess(
99 base::DictionaryValue* webstore_data) OVERRIDE; 99 base::DictionaryValue* webstore_data) OVERRIDE;
100 virtual void OnWebstoreResponseParseFailure( 100 virtual void OnWebstoreResponseParseFailure(
101 const std::string& error) OVERRIDE; 101 const std::string& error) OVERRIDE;
102 102
103 // Helper function for testing for the existence of |key| in
104 // |response|. Passes |key|'s content via |value| and returns
105 // true when |key| is present.
106 bool CheckResponseKeyValue(const base::DictionaryValue* response,
107 const char* key,
108 std::string* value);
109
103 KioskAppDataDelegate* delegate_; // not owned. 110 KioskAppDataDelegate* delegate_; // not owned.
104 Status status_; 111 Status status_;
105 112
106 std::string app_id_; 113 std::string app_id_;
107 std::string user_id_; 114 std::string user_id_;
108 std::string name_; 115 std::string name_;
109 gfx::ImageSkia icon_; 116 gfx::ImageSkia icon_;
110 scoped_refptr<base::RefCountedString> raw_icon_; 117 scoped_refptr<base::RefCountedString> raw_icon_;
111 118
112 scoped_ptr<extensions::WebstoreDataFetcher> webstore_fetcher_; 119 scoped_ptr<extensions::WebstoreDataFetcher> webstore_fetcher_;
113 base::FilePath icon_path_; 120 base::FilePath icon_path_;
114 121
115 DISALLOW_COPY_AND_ASSIGN(KioskAppData); 122 DISALLOW_COPY_AND_ASSIGN(KioskAppData);
116 }; 123 };
117 124
118 } // namespace chromeos 125 } // namespace chromeos
119 126
120 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_ 127 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698