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

Side by Side Diff: chrome/browser/extensions/extension_install_prompt.h

Issue 12943010: Add native permissions dialog for apps_devtools app. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 protected: 304 protected:
305 friend class extensions::ExtensionWebstorePrivateApiTest; 305 friend class extensions::ExtensionWebstorePrivateApiTest;
306 friend class extensions::MockGetAuthTokenFunction; 306 friend class extensions::MockGetAuthTokenFunction;
307 friend class WebstoreStartupInstallUnpackFailureTest; 307 friend class WebstoreStartupInstallUnpackFailureTest;
308 308
309 // Whether or not we should record the oauth2 grant upon successful install. 309 // Whether or not we should record the oauth2 grant upon successful install.
310 bool record_oauth2_grant_; 310 bool record_oauth2_grant_;
311 311
312 private: 312 private:
313 friend class GalleryInstallApiTestObserver; 313 friend class GalleryInstallApiTestObserver;
314 friend class ExtensionPermissionsPrompt;
asargent_no_longer_on_chrome 2013/03/20 21:46:30 I don't like the idea of using friendship here. W
Gaurav 2013/03/27 19:06:44 Added an extra method, and removed the new class
314 315
315 // Sets the icon that will be used in any UI. If |icon| is NULL, or contains 316 // Sets the icon that will be used in any UI. If |icon| is NULL, or contains
316 // an empty bitmap, then a default icon will be used instead. 317 // an empty bitmap, then a default icon will be used instead.
317 void SetIcon(const SkBitmap* icon); 318 void SetIcon(const SkBitmap* icon);
318 319
319 // ImageLoader callback. 320 // ImageLoader callback.
320 void OnImageLoaded(const gfx::Image& image); 321 void OnImageLoaded(const gfx::Image& image);
321 322
322 // Starts the process of showing a confirmation UI, which is split into two. 323 // Starts the process of showing a confirmation UI, which is split into two.
323 // 1) Set off a 'load icon' task. 324 // 1) Set off a 'load icon' task.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // A pre-filled prompt. 364 // A pre-filled prompt.
364 Prompt prompt_; 365 Prompt prompt_;
365 366
366 scoped_ptr<OAuth2MintTokenFlow> token_flow_; 367 scoped_ptr<OAuth2MintTokenFlow> token_flow_;
367 368
368 // Used to show the confirm dialog. 369 // Used to show the confirm dialog.
369 ShowDialogCallback show_dialog_callback_; 370 ShowDialogCallback show_dialog_callback_;
370 }; 371 };
371 372
372 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 373 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698