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

Side by Side Diff: chrome/browser/notifications/desktop_notification_service.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/omnibox_search_hint.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/notifications/desktop_notification_service.h" 5 #include "chrome/browser/notifications/desktop_notification_service.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h"
9 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
10 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
11 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/browser_child_process_host.h" 11 #include "chrome/browser/browser_child_process_host.h"
13 #include "chrome/browser/browser_thread.h" 12 #include "chrome/browser/browser_thread.h"
14 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/notifications/notification.h" 14 #include "chrome/browser/notifications/notification.h"
16 #include "chrome/browser/notifications/notification_object_proxy.h" 15 #include "chrome/browser/notifications/notification_object_proxy.h"
17 #include "chrome/browser/notifications/notification_ui_manager.h" 16 #include "chrome/browser/notifications/notification_ui_manager.h"
18 #include "chrome/browser/notifications/notifications_prefs_cache.h" 17 #include "chrome/browser/notifications/notifications_prefs_cache.h"
(...skipping 11 matching lines...) Expand all
30 #include "chrome/common/pref_names.h" 29 #include "chrome/common/pref_names.h"
31 #include "chrome/common/render_messages.h" 30 #include "chrome/common/render_messages.h"
32 #include "chrome/common/render_messages_params.h" 31 #include "chrome/common/render_messages_params.h"
33 #include "chrome/common/url_constants.h" 32 #include "chrome/common/url_constants.h"
34 #include "grit/browser_resources.h" 33 #include "grit/browser_resources.h"
35 #include "grit/chromium_strings.h" 34 #include "grit/chromium_strings.h"
36 #include "grit/generated_resources.h" 35 #include "grit/generated_resources.h"
37 #include "grit/theme_resources.h" 36 #include "grit/theme_resources.h"
38 #include "net/base/escape.h" 37 #include "net/base/escape.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
39 #include "ui/base/resource/resource_bundle.h"
40 40
41 using WebKit::WebNotificationPresenter; 41 using WebKit::WebNotificationPresenter;
42 using WebKit::WebTextDirection; 42 using WebKit::WebTextDirection;
43 43
44 const ContentSetting kDefaultSetting = CONTENT_SETTING_ASK; 44 const ContentSetting kDefaultSetting = CONTENT_SETTING_ASK;
45 45
46 // static 46 // static
47 string16 DesktopNotificationService::CreateDataUrl( 47 string16 DesktopNotificationService::CreateDataUrl(
48 const GURL& icon_url, const string16& title, const string16& body, 48 const GURL& icon_url, const string16& title, const string16& body,
49 WebTextDirection dir) { 49 WebTextDirection dir) {
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 } 630 }
631 return UTF8ToUTF16(origin.host()); 631 return UTF8ToUTF16(origin.host());
632 } 632 }
633 633
634 void DesktopNotificationService::NotifySettingsChange() { 634 void DesktopNotificationService::NotifySettingsChange() {
635 NotificationService::current()->Notify( 635 NotificationService::current()->Notify(
636 NotificationType::DESKTOP_NOTIFICATION_SETTINGS_CHANGED, 636 NotificationType::DESKTOP_NOTIFICATION_SETTINGS_CHANGED,
637 Source<DesktopNotificationService>(this), 637 Source<DesktopNotificationService>(this),
638 NotificationService::NoDetails()); 638 NotificationService::NoDetails());
639 } 639 }
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/omnibox_search_hint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698