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/media/media_stream_capture_indicator.h" | 5 #include "chrome/browser/media/media_stream_capture_indicator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/status_icons/status_icon.h" | 12 #include "chrome/browser/status_icons/status_icon.h" |
13 #include "chrome/browser/status_icons/status_tray.h" | 13 #include "chrome/browser/status_icons/status_tray.h" |
14 #include "chrome/browser/tab_contents/tab_util.h" | 14 #include "chrome/browser/tab_contents/tab_util.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/content_browser_client.h" | 16 #include "content/public/browser/content_browser_client.h" |
17 #include "content/public/browser/render_view_host.h" | 17 #include "content/public/browser/render_view_host.h" |
18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
19 #include "content/public/browser/web_contents_delegate.h" | 19 #include "content/public/browser/web_contents_delegate.h" |
20 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "grit/theme_resources.h" | 22 #include "grit/theme_resources.h" |
23 #include "grit/theme_resources_standard.h" | |
24 #include "net/base/net_util.h" | 23 #include "net/base/net_util.h" |
25 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/base/resource/resource_bundle.h" | 25 #include "ui/base/resource/resource_bundle.h" |
27 | 26 |
28 using content::BrowserThread; | 27 using content::BrowserThread; |
29 using content::WebContents; | 28 using content::WebContents; |
30 | 29 |
31 MediaStreamCaptureIndicator::TabEquals::TabEquals(int render_process_id, | 30 MediaStreamCaptureIndicator::TabEquals::TabEquals(int render_process_id, |
32 int render_view_id) | 31 int render_view_id) |
33 : render_process_id_(render_process_id), | 32 : render_process_id_(render_process_id), |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 372 |
374 // Remove the last character if it is a '/'. | 373 // Remove the last character if it is a '/'. |
375 if (!security_origin.empty()) { | 374 if (!security_origin.empty()) { |
376 std::string::iterator it = security_origin.end() - 1; | 375 std::string::iterator it = security_origin.end() - 1; |
377 if (*it == '/') | 376 if (*it == '/') |
378 security_origin.erase(it); | 377 security_origin.erase(it); |
379 } | 378 } |
380 | 379 |
381 return UTF8ToUTF16(security_origin); | 380 return UTF8ToUTF16(security_origin); |
382 } | 381 } |
OLD | NEW |