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

Unified Diff: samples/dartiverse_search/lib/search_engine.dart

Issue 752303004: Delete dartiverse-search from the repo and update dart:io documentation to point (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: samples/dartiverse_search/lib/search_engine.dart
diff --git a/samples/dartiverse_search/lib/search_engine.dart b/samples/dartiverse_search/lib/search_engine.dart
deleted file mode 100644
index 959b3b54de3d85c30e2b62d3b73506e52594dd2a..0000000000000000000000000000000000000000
--- a/samples/dartiverse_search/lib/search_engine.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library search_engine;
-
-import 'dart:async';
-import 'dart:convert' show JSON;
-import 'dart:io' show HttpStatus;
-import 'package:http/http.dart' as http_client;
-
-part 'github_search_engine.dart';
-part 'stack_overflow_search_engine.dart';
-
-
-/**
- * A [SearchEngine] provides the ability to search for a given string.
- */
-abstract class SearchEngine {
- /**
- * Get the name of the search engine.
- */
- String get name;
-
- /**
- * Perform a search for [input]. The returned [Stream] will complete
- * when there are no more results.
- */
- Stream<SearchResult> search(String input);
-}
-
-
-/**
- * A [SearchResult] entry, returned by [SearchEngine.search].
- */
-class SearchResult {
- /**
- * The title of the result.
- */
- final String title;
-
- /**
- * The link of the result.
- */
- final String link;
-
- /**
- * Create a new [SearchResult] from a title and a link.
- */
- SearchResult(this.title, this.link);
-}

Powered by Google App Engine
This is Rietveld 408576698