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

Issue 1311773005: Extension point for WorkManagerFactory(s). (Closed)

Created:
5 years, 4 months ago by scheglov
Modified:
5 years, 3 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Extension point for WorkManagerFactory(s). I'm not quite happy that internal classes get into the extension point declaration. But I guess that because of the nature of the work WorkManager(s) are doing, we have to have significant exposure to internals. Also, onAnalysisOptionsChanged() and onSourceFactoryChanged()... these probably are better to implement as streams in InternalAnalysisContext. Thoughts? R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/597f189eb45af457c72ffa2b4e140a21f43c1914

Patch Set 1 #

Total comments: 8

Patch Set 2 : Move classes as by review comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -212 lines) Patch
M pkg/analyzer/lib/plugin/task.dart View 1 2 chunks +15 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/context/cache.dart View 1 2 chunks +0 lines, -41 lines 0 comments Download
M pkg/analyzer/lib/src/context/context.dart View 14 chunks +59 lines, -39 lines 0 comments Download
M pkg/analyzer/lib/src/generated/incremental_resolver.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/lib/src/plugin/engine_plugin.dart View 6 chunks +53 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart_work_manager.dart View 6 chunks +13 lines, -18 lines 0 comments Download
M pkg/analyzer/lib/src/task/driver.dart View 1 7 chunks +14 lines, -71 lines 0 comments Download
M pkg/analyzer/lib/src/task/html_work_manager.dart View 4 chunks +11 lines, -17 lines 0 comments Download
M pkg/analyzer/lib/task/model.dart View 1 3 chunks +127 lines, -0 lines 3 comments Download
M pkg/analyzer/test/generated/engine_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/task/dart_work_manager_test.dart View 7 chunks +17 lines, -14 lines 0 comments Download
M pkg/analyzer/test/src/task/html_work_manager_test.dart View 2 chunks +4 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
scheglov
5 years, 4 months ago (2015-08-24 20:03:17 UTC) #1
Paul Berry
lgtm. I don't really have a strong opinion about onAnalysisOptionsChanged() and onSourceFactoryChanged(). https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/src/context/context.dart File pkg/analyzer/lib/src/context/context.dart ...
5 years, 4 months ago (2015-08-24 20:13:55 UTC) #2
scheglov
https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/src/context/context.dart File pkg/analyzer/lib/src/context/context.dart (right): https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/src/context/context.dart#newcode814 pkg/analyzer/lib/src/context/context.dart:814: for (WorkManager workManager in workManagers) { On 2015/08/24 20:13:55, ...
5 years, 4 months ago (2015-08-24 20:21:10 UTC) #3
Paul Berry
https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/src/context/context.dart File pkg/analyzer/lib/src/context/context.dart (right): https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/src/context/context.dart#newcode814 pkg/analyzer/lib/src/context/context.dart:814: for (WorkManager workManager in workManagers) { On 2015/08/24 20:21:10, ...
5 years, 4 months ago (2015-08-24 20:29:28 UTC) #4
Brian Wilkerson
LGTM https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/plugin/task.dart File pkg/analyzer/lib/plugin/task.dart (right): https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/plugin/task.dart#newcode13 pkg/analyzer/lib/plugin/task.dart:13: import 'package:analyzer/src/task/driver.dart' show WorkManager; The interface WorkManager needs ...
5 years, 4 months ago (2015-08-24 21:43:09 UTC) #5
scheglov
PTAL https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/plugin/task.dart File pkg/analyzer/lib/plugin/task.dart (right): https://codereview.chromium.org/1311773005/diff/1/pkg/analyzer/lib/plugin/task.dart#newcode13 pkg/analyzer/lib/plugin/task.dart:13: import 'package:analyzer/src/task/driver.dart' show WorkManager; On 2015/08/24 21:43:09, Brian ...
5 years, 3 months ago (2015-08-26 15:43:07 UTC) #6
Brian Wilkerson
LGTM https://codereview.chromium.org/1311773005/diff/20001/pkg/analyzer/lib/task/model.dart File pkg/analyzer/lib/task/model.dart (right): https://codereview.chromium.org/1311773005/diff/20001/pkg/analyzer/lib/task/model.dart#newcode395 pkg/analyzer/lib/task/model.dart:395: * A specification of the given [result] for ...
5 years, 3 months ago (2015-08-26 16:19:32 UTC) #7
scheglov
5 years, 3 months ago (2015-08-26 16:45:24 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
597f189eb45af457c72ffa2b4e140a21f43c1914 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698