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

Side by Side Diff: extensions/browser/event_router.h

Issue 344543006: Disable ephemeral apps after they stop running (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prevent demotion of installed app due to race condition Created 6 years, 5 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 #ifndef EXTENSIONS_BROWSER_EVENT_ROUTER_H_ 5 #ifndef EXTENSIONS_BROWSER_EVENT_ROUTER_H_
6 #define EXTENSIONS_BROWSER_EVENT_ROUTER_H_ 6 #define EXTENSIONS_BROWSER_EVENT_ROUTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // Extra information used to filter which events are sent to the listener. 317 // Extra information used to filter which events are sent to the listener.
318 EventFilteringInfo filter_info; 318 EventFilteringInfo filter_info;
319 319
320 // If specified, this is called before dispatching an event to each 320 // If specified, this is called before dispatching an event to each
321 // extension. The third argument is a mutable reference to event_args, 321 // extension. The third argument is a mutable reference to event_args,
322 // allowing the caller to provide different arguments depending on the 322 // allowing the caller to provide different arguments depending on the
323 // extension and profile. This is guaranteed to be called synchronously with 323 // extension and profile. This is guaranteed to be called synchronously with
324 // DispatchEvent, so callers don't need to worry about lifetime. 324 // DispatchEvent, so callers don't need to worry about lifetime.
325 WillDispatchCallback will_dispatch_callback; 325 WillDispatchCallback will_dispatch_callback;
326 326
327 // If true, this event will always be dispatched to ephemeral apps, regardless
328 // of whether they are running or inactive. Defaults to false.
329 // Most events can only be dispatched to ephemeral apps that are already
330 // running. Cached ephemeral apps are inactive until launched by the user.
331 bool can_load_ephemeral_apps;
332
333 Event(const std::string& event_name, 327 Event(const std::string& event_name,
334 scoped_ptr<base::ListValue> event_args); 328 scoped_ptr<base::ListValue> event_args);
335 329
336 Event(const std::string& event_name, 330 Event(const std::string& event_name,
337 scoped_ptr<base::ListValue> event_args, 331 scoped_ptr<base::ListValue> event_args,
338 content::BrowserContext* restrict_to_browser_context); 332 content::BrowserContext* restrict_to_browser_context);
339 333
340 Event(const std::string& event_name, 334 Event(const std::string& event_name,
341 scoped_ptr<base::ListValue> event_args, 335 scoped_ptr<base::ListValue> event_args,
342 content::BrowserContext* restrict_to_browser_context, 336 content::BrowserContext* restrict_to_browser_context,
(...skipping 16 matching lines...) Expand all
359 // "webRequest.onCompleted/123". 353 // "webRequest.onCompleted/123".
360 const std::string event_name; 354 const std::string event_name;
361 355
362 const std::string extension_id; 356 const std::string extension_id;
363 content::BrowserContext* browser_context; 357 content::BrowserContext* browser_context;
364 }; 358 };
365 359
366 } // namespace extensions 360 } // namespace extensions
367 361
368 #endif // EXTENSIONS_BROWSER_EVENT_ROUTER_H_ 362 #endif // EXTENSIONS_BROWSER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698