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

Side by Side Diff: chrome/browser/permissions/permission_request_manager.cc

Issue 2182883002: Permissions: Rename PermissionBubbleView to PermissionPromptInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig@ review Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/permissions/permission_request_manager.h" 5 #include "chrome/browser/permissions/permission_request_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/user_metrics_action.h" 10 #include "base/metrics/user_metrics_action.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 // PermissionRequestManager ---------------------------------------------------- 74 // PermissionRequestManager ----------------------------------------------------
75 75
76 DEFINE_WEB_CONTENTS_USER_DATA_KEY(PermissionRequestManager); 76 DEFINE_WEB_CONTENTS_USER_DATA_KEY(PermissionRequestManager);
77 77
78 PermissionRequestManager::PermissionRequestManager( 78 PermissionRequestManager::PermissionRequestManager(
79 content::WebContents* web_contents) 79 content::WebContents* web_contents)
80 : content::WebContentsObserver(web_contents), 80 : content::WebContentsObserver(web_contents),
81 #if !defined(OS_ANDROID) // No bubbles in android tests. 81 #if !defined(OS_ANDROID) // No bubbles in android tests.
82 view_factory_(base::Bind(&PermissionBubbleView::Create)), 82 view_factory_(base::Bind(&PermissionPrompt::Create)),
83 #endif 83 #endif
84 view_(nullptr), 84 view_(nullptr),
85 main_frame_has_fully_loaded_(false), 85 main_frame_has_fully_loaded_(false),
86 auto_response_for_test_(NONE), 86 auto_response_for_test_(NONE),
87 weak_factory_(this) { 87 weak_factory_(this) {
88 } 88 }
89 89
90 PermissionRequestManager::~PermissionRequestManager() { 90 PermissionRequestManager::~PermissionRequestManager() {
91 if (view_ != NULL) 91 if (view_ != NULL)
92 view_->SetDelegate(NULL); 92 view_->SetDelegate(NULL);
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 case DENY_ALL: 507 case DENY_ALL:
508 Deny(); 508 Deny();
509 break; 509 break;
510 case DISMISS: 510 case DISMISS:
511 Closing(); 511 Closing();
512 break; 512 break;
513 case NONE: 513 case NONE:
514 NOTREACHED(); 514 NOTREACHED();
515 } 515 }
516 } 516 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698