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

Side by Side Diff: mojo/application/public/interfaces/content_handler.mojom

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module mojo;
6
7 import "mojo/application/public/interfaces/application.mojom";
8 import "network/public/interfaces/url_loader.mojom";
9
10 // Interface implemented by content handlers. To avoid race conditions with
11 // dropped requests, the implementation should keep a reference to the lifetime
12 // of the app (by holding on to AppRefCount). Each application started by
13 // StartApplication should call the callback given by that method on
14 // destruction. When the owner in the shell notices this, it will destroy the
15 // interface pointer, which should cause the strongly-bound ContentHandler
16 // implementation to self destruct and release the app reference.
17 interface ContentHandler {
18 // The callback should be called when the application is destructed.
19 StartApplication(Application& application, URLResponse response) => ();
20 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698