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

Side by Side Diff: chrome/browser/pdf_unsupported_feature.cc

Issue 6598057: Split infobar_delegate.[cc,h] into separate pieces for the different classes defined within, so that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/pdf_unsupported_feature.h" 5 #include "chrome/browser/pdf_unsupported_feature.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "base/version.h" 9 #include "base/version.h"
10 #include "chrome/browser/metrics/user_metrics.h" 10 #include "chrome/browser/metrics/user_metrics.h"
11 #include "chrome/browser/prefs/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/tab_contents/infobar_delegate.h" 13 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
14 #include "chrome/common/jstemplate_builder.h" 14 #include "chrome/common/jstemplate_builder.h"
15 #include "chrome/common/pepper_plugin_registry.h" 15 #include "chrome/common/pepper_plugin_registry.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "content/browser/plugin_service.h" 17 #include "content/browser/plugin_service.h"
18 #include "content/browser/renderer_host/render_process_host.h" 18 #include "content/browser/renderer_host/render_process_host.h"
19 #include "content/browser/renderer_host/render_view_host.h" 19 #include "content/browser/renderer_host/render_view_host.h"
20 #include "content/browser/tab_contents/interstitial_page.h" 20 #include "content/browser/tab_contents/interstitial_page.h"
21 #include "content/browser/tab_contents/tab_contents.h" 21 #include "content/browser/tab_contents/tab_contents.h"
22 #include "grit/browser_resources.h" 22 #include "grit/browser_resources.h"
23 #include "grit/generated_resources.h" 23 #include "grit/generated_resources.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 for (size_t i = 0; i < plugin_groups.size(); ++i) { 379 for (size_t i = 0; i < plugin_groups.size(); ++i) {
380 if (plugin_groups[i].GetGroupName() == reader_group_name) { 380 if (plugin_groups[i].GetGroupName() == reader_group_name) {
381 reader_group = &plugin_groups[i]; 381 reader_group = &plugin_groups[i];
382 break; 382 break;
383 } 383 }
384 } 384 }
385 385
386 tab->AddInfoBar(new PDFUnsupportedFeatureConfirmInfoBarDelegate( 386 tab->AddInfoBar(new PDFUnsupportedFeatureConfirmInfoBarDelegate(
387 tab, reader_group)); 387 tab, reader_group));
388 } 388 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698