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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_ssl_helper.cc

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 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
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 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" 5 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 22 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
23 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" 23 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h"
24 #include "chrome/browser/ui/tab_contents/tab_contents.h" 24 #include "chrome/browser/ui/tab_contents/tab_contents.h"
25 #include "chrome/common/chrome_notification_types.h" 25 #include "chrome/common/chrome_notification_types.h"
26 #include "chrome/common/chrome_switches.h" 26 #include "chrome/common/chrome_switches.h"
27 #include "content/public/browser/notification_details.h" 27 #include "content/public/browser/notification_details.h"
28 #include "content/public/browser/notification_source.h" 28 #include "content/public/browser/notification_source.h"
29 #include "content/public/browser/web_contents.h" 29 #include "content/public/browser/web_contents.h"
30 #include "content/public/browser/web_contents_view.h" 30 #include "content/public/browser/web_contents_view.h"
31 #include "grit/generated_resources.h" 31 #include "grit/generated_resources.h"
32 #include "grit/theme_resources_standard.h" 32 #include "grit/theme_resources.h"
33 #include "net/base/net_errors.h" 33 #include "net/base/net_errors.h"
34 #include "net/base/x509_certificate.h" 34 #include "net/base/x509_certificate.h"
35 #include "ui/base/l10n/l10n_util.h" 35 #include "ui/base/l10n/l10n_util.h"
36 #include "ui/base/resource/resource_bundle.h" 36 #include "ui/base/resource/resource_bundle.h"
37 37
38 namespace { 38 namespace {
39 39
40 gfx::Image* GetCertIcon() { 40 gfx::Image* GetCertIcon() {
41 // TODO(davidben): use a more appropriate icon. 41 // TODO(davidben): use a more appropriate icon.
42 return &ResourceBundle::GetSharedInstance().GetNativeImageNamed( 42 return &ResourceBundle::GetSharedInstance().GetNativeImageNamed(
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 TabContentsSSLHelper::SSLAddCertData* TabContentsSSLHelper::GetAddCertData( 243 TabContentsSSLHelper::SSLAddCertData* TabContentsSSLHelper::GetAddCertData(
244 SSLAddCertHandler* handler) { 244 SSLAddCertHandler* handler) {
245 // Find/create the slot. 245 // Find/create the slot.
246 linked_ptr<SSLAddCertData>& ptr_ref = 246 linked_ptr<SSLAddCertData>& ptr_ref =
247 request_id_to_add_cert_data_[handler->network_request_id()]; 247 request_id_to_add_cert_data_[handler->network_request_id()];
248 // Fill it if necessary. 248 // Fill it if necessary.
249 if (!ptr_ref.get()) 249 if (!ptr_ref.get())
250 ptr_ref.reset(new SSLAddCertData(tab_contents_)); 250 ptr_ref.reset(new SSLAddCertData(tab_contents_));
251 return ptr_ref.get(); 251 return ptr_ref.get();
252 } 252 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/spelling_bubble_model.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698