OLD | NEW |
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/ui/views/tabs/browser_tab_strip_controller.h" | 5 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/macros.h" |
8 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
9 #include "base/task_runner_util.h" | 10 #include "base/task_runner_util.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
11 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 12 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/extensions/tab_helper.h" | 15 #include "chrome/browser/extensions/tab_helper.h" |
15 #include "chrome/browser/favicon/favicon_utils.h" | 16 #include "chrome/browser/favicon/favicon_utils.h" |
16 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/search/search.h" | 18 #include "chrome/browser/search/search.h" |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 content::WebPluginInfo plugin; | 580 content::WebPluginInfo plugin; |
580 tabstrip_->FileSupported( | 581 tabstrip_->FileSupported( |
581 url, | 582 url, |
582 mime_type.empty() || mime_util::IsSupportedMimeType(mime_type) || | 583 mime_type.empty() || mime_util::IsSupportedMimeType(mime_type) || |
583 content::PluginService::GetInstance()->GetPluginInfo( | 584 content::PluginService::GetInstance()->GetPluginInfo( |
584 -1, // process ID | 585 -1, // process ID |
585 MSG_ROUTING_NONE, // routing ID | 586 MSG_ROUTING_NONE, // routing ID |
586 model_->profile()->GetResourceContext(), url, GURL(), mime_type, | 587 model_->profile()->GetResourceContext(), url, GURL(), mime_type, |
587 false, NULL, &plugin, NULL)); | 588 false, NULL, &plugin, NULL)); |
588 } | 589 } |
OLD | NEW |