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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2370923005: Implement restart-required message on Linux. (Closed)
Patch Set: Through #22 & sync Created 4 years, 2 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 (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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 13 matching lines...) Expand all
24 #include "chrome/common/chrome_features.h" 24 #include "chrome/common/chrome_features.h"
25 #include "chrome/common/chrome_isolated_world_ids.h" 25 #include "chrome/common/chrome_isolated_world_ids.h"
26 #include "chrome/common/chrome_paths.h" 26 #include "chrome/common/chrome_paths.h"
27 #include "chrome/common/chrome_switches.h" 27 #include "chrome/common/chrome_switches.h"
28 #include "chrome/common/crash_keys.h" 28 #include "chrome/common/crash_keys.h"
29 #include "chrome/common/pepper_permission_util.h" 29 #include "chrome/common/pepper_permission_util.h"
30 #include "chrome/common/prerender_types.h" 30 #include "chrome/common/prerender_types.h"
31 #include "chrome/common/render_messages.h" 31 #include "chrome/common/render_messages.h"
32 #include "chrome/common/secure_origin_whitelist.h" 32 #include "chrome/common/secure_origin_whitelist.h"
33 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
34 #include "chrome/grit/chromium_strings.h"
34 #include "chrome/grit/generated_resources.h" 35 #include "chrome/grit/generated_resources.h"
35 #include "chrome/grit/locale_settings.h" 36 #include "chrome/grit/locale_settings.h"
36 #include "chrome/grit/renderer_resources.h" 37 #include "chrome/grit/renderer_resources.h"
37 #include "chrome/renderer/app_categorizer.h" 38 #include "chrome/renderer/app_categorizer.h"
38 #include "chrome/renderer/banners/app_banner_client.h" 39 #include "chrome/renderer/banners/app_banner_client.h"
39 #include "chrome/renderer/benchmarking_extension.h" 40 #include "chrome/renderer/benchmarking_extension.h"
40 #include "chrome/renderer/chrome_render_frame_observer.h" 41 #include "chrome/renderer/chrome_render_frame_observer.h"
41 #include "chrome/renderer/chrome_render_thread_observer.h" 42 #include "chrome/renderer/chrome_render_thread_observer.h"
42 #include "chrome/renderer/chrome_render_view_observer.h" 43 #include "chrome/renderer/chrome_render_view_observer.h"
43 #include "chrome/renderer/content_settings_observer.h" 44 #include "chrome/renderer/content_settings_observer.h"
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 case ChromeViewHostMsg_GetPluginInfo_Status::kComponentUpdateRequired: { 868 case ChromeViewHostMsg_GetPluginInfo_Status::kComponentUpdateRequired: {
868 placeholder = create_blocked_plugin( 869 placeholder = create_blocked_plugin(
869 IDR_BLOCKED_PLUGIN_HTML, 870 IDR_BLOCKED_PLUGIN_HTML,
870 l10n_util::GetStringFUTF16(IDS_PLUGIN_OUTDATED, group_name)); 871 l10n_util::GetStringFUTF16(IDS_PLUGIN_OUTDATED, group_name));
871 placeholder->AllowLoading(); 872 placeholder->AllowLoading();
872 render_frame->Send(new ChromeViewHostMsg_BlockedComponentUpdatedPlugin( 873 render_frame->Send(new ChromeViewHostMsg_BlockedComponentUpdatedPlugin(
873 render_frame->GetRoutingID(), placeholder->CreateRoutingId(), 874 render_frame->GetRoutingID(), placeholder->CreateRoutingId(),
874 identifier)); 875 identifier));
875 break; 876 break;
876 } 877 }
878 case ChromeViewHostMsg_GetPluginInfo_Status::kRestartRequired: {
879 placeholder = create_blocked_plugin(
880 IDR_BLOCKED_PLUGIN_HTML,
881 l10n_util::GetStringFUTF16(IDS_PLUGIN_RESTART_REQUIRED,
882 group_name));
883 break;
884 }
877 } 885 }
878 } 886 }
879 placeholder->SetStatus(status); 887 placeholder->SetStatus(status);
880 return placeholder->plugin(); 888 return placeholder->plugin();
881 } 889 }
882 #endif // defined(ENABLE_PLUGINS) 890 #endif // defined(ENABLE_PLUGINS)
883 891
884 // For NaCl content handling plugins, the NaCl manifest is stored in an 892 // For NaCl content handling plugins, the NaCl manifest is stored in an
885 // additonal 'nacl' param associated with the MIME type. 893 // additonal 'nacl' param associated with the MIME type.
886 // static 894 // static
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 1478
1471 url::Replacements<char> r; 1479 url::Replacements<char> r;
1472 r.SetPath(path.c_str(), url::Component(0, path.length())); 1480 r.SetPath(path.c_str(), url::Component(0, path.length()));
1473 1481
1474 if (result == internal::NUM_PLUGIN_ERROR) 1482 if (result == internal::NUM_PLUGIN_ERROR)
1475 result = invalid_url ? internal::SUCCESS_PARAMS_REWRITE : internal::SUCCESS; 1483 result = invalid_url ? internal::SUCCESS_PARAMS_REWRITE : internal::SUCCESS;
1476 1484
1477 RecordYouTubeRewriteUMA(result); 1485 RecordYouTubeRewriteUMA(result);
1478 return corrected_url.ReplaceComponents(r); 1486 return corrected_url.ReplaceComponents(r);
1479 } 1487 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | components/component_updater/component_updater_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698