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

Side by Side Diff: chrome/browser/extensions/api/alarms/alarm_manager.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 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) 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/extensions/api/alarms/alarm_manager.h" 5 #include "chrome/browser/extensions/api/alarms/alarm_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/time/clock.h" 11 #include "base/time/clock.h"
12 #include "base/time/default_clock.h" 12 #include "base/time/default_clock.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "base/value_conversions.h" 14 #include "base/value_conversions.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/extensions/extension_service.h" 17 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/extensions/extension_system.h"
19 #include "chrome/browser/extensions/state_store.h" 18 #include "chrome/browser/extensions/state_store.h"
20 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/common/extensions/api/alarms.h" 20 #include "chrome/common/extensions/api/alarms.h"
22 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
23 #include "extensions/browser/event_router.h" 22 #include "extensions/browser/event_router.h"
23 #include "extensions/browser/extension_system.h"
24 24
25 namespace extensions { 25 namespace extensions {
26 26
27 namespace alarms = api::alarms; 27 namespace alarms = api::alarms;
28 28
29 namespace { 29 namespace {
30 30
31 // A list of alarms that this extension has set. 31 // A list of alarms that this extension has set.
32 const char kRegisteredAlarms[] = "alarms"; 32 const char kRegisteredAlarms[] = "alarms";
33 const char kAlarmGranularity[] = "granularity"; 33 const char kAlarmGranularity[] = "granularity";
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 if (create_info.period_in_minutes.get()) { 472 if (create_info.period_in_minutes.get()) {
473 js_alarm->period_in_minutes.reset( 473 js_alarm->period_in_minutes.reset(
474 new double(*create_info.period_in_minutes)); 474 new double(*create_info.period_in_minutes));
475 } 475 }
476 } 476 }
477 477
478 Alarm::~Alarm() { 478 Alarm::~Alarm() {
479 } 479 }
480 480
481 } // namespace extensions 481 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698