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

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

Issue 9317026: Hide WorkerProcessHost from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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/notifications/desktop_notification_service.h" 5 #include "chrome/browser/notifications/desktop_notification_service.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 23 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
24 #include "chrome/browser/ui/browser_list.h" 24 #include "chrome/browser/ui/browser_list.h"
25 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 25 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
26 #include "chrome/common/chrome_notification_types.h" 26 #include "chrome/common/chrome_notification_types.h"
27 #include "chrome/common/content_settings.h" 27 #include "chrome/common/content_settings.h"
28 #include "chrome/common/content_settings_pattern.h" 28 #include "chrome/common/content_settings_pattern.h"
29 #include "chrome/common/pref_names.h" 29 #include "chrome/common/pref_names.h"
30 #include "chrome/common/url_constants.h" 30 #include "chrome/common/url_constants.h"
31 #include "content/browser/renderer_host/render_view_host.h" 31 #include "content/browser/renderer_host/render_view_host.h"
32 #include "content/browser/worker_host/worker_process_host.h"
33 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
34 #include "content/public/browser/notification_service.h" 33 #include "content/public/browser/notification_service.h"
35 #include "content/public/browser/web_contents.h" 34 #include "content/public/browser/web_contents.h"
36 #include "content/public/common/show_desktop_notification_params.h" 35 #include "content/public/common/show_desktop_notification_params.h"
37 #include "grit/browser_resources.h" 36 #include "grit/browser_resources.h"
38 #include "grit/chromium_strings.h" 37 #include "grit/chromium_strings.h"
39 #include "grit/generated_resources.h" 38 #include "grit/generated_resources.h"
40 #include "grit/theme_resources_standard.h" 39 #include "grit/theme_resources_standard.h"
41 #include "net/base/escape.h" 40 #include "net/base/escape.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 450
452 if (setting == CONTENT_SETTING_ALLOW) 451 if (setting == CONTENT_SETTING_ALLOW)
453 return WebKit::WebNotificationPresenter::PermissionAllowed; 452 return WebKit::WebNotificationPresenter::PermissionAllowed;
454 if (setting == CONTENT_SETTING_BLOCK) 453 if (setting == CONTENT_SETTING_BLOCK)
455 return WebKit::WebNotificationPresenter::PermissionDenied; 454 return WebKit::WebNotificationPresenter::PermissionDenied;
456 if (setting == CONTENT_SETTING_ASK) 455 if (setting == CONTENT_SETTING_ASK)
457 return WebKit::WebNotificationPresenter::PermissionNotAllowed; 456 return WebKit::WebNotificationPresenter::PermissionNotAllowed;
458 NOTREACHED() << "Invalid notifications settings value: " << setting; 457 NOTREACHED() << "Invalid notifications settings value: " << setting;
459 return WebKit::WebNotificationPresenter::PermissionNotAllowed; 458 return WebKit::WebNotificationPresenter::PermissionNotAllowed;
460 } 459 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698